diff options
author | Jason Merrill <jason@redhat.com> | 2024-09-12 16:22:02 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2024-09-13 17:18:29 +0200 |
commit | 4ee692337c4ec18fe9be3df34f3607ea3de5ef93 (patch) | |
tree | ffeca15a6d15e6bd6ad63873e877fa00834b0dd6 /libiberty/simple-object-elf.c | |
parent | 99988464fc86354f0359c0fd91eee444fb5bd8a2 (diff) | |
download | gcc-4ee692337c4ec18fe9be3df34f3607ea3de5ef93.zip gcc-4ee692337c4ec18fe9be3df34f3607ea3de5ef93.tar.gz gcc-4ee692337c4ec18fe9be3df34f3607ea3de5ef93.tar.bz2 |
c++: -fimplicit-constexpr diagnostic improvement [PR116696]
PR116696 expressed surprise that explicit 'constexpr' was needed on one
function; this was because the function isn't 'inline', and
-fimplicit-constexpr doesn't try to promote non-inline functions. Let's be
more helpful in that situation, and also help trace through functions that
were promoted.
PR c++/116696
gcc/cp/ChangeLog:
* constexpr.cc (explain_invalid_constexpr_fn): When
-fimplicit-constexpr, also explain inline functions, and point out
non-inline functions.
gcc/testsuite/ChangeLog:
* g++.dg/DRs/dr2478.C: Prune extra diagnostic.
* g++.dg/ext/fimplicit-constexpr1.C: New test.
Diffstat (limited to 'libiberty/simple-object-elf.c')
0 files changed, 0 insertions, 0 deletions