diff options
author | Jason Merrill <jason@redhat.com> | 2021-06-17 15:31:15 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2021-06-17 15:48:07 -0400 |
commit | 331e20a69be0d9e7d448580945945d4c7a1e3c0a (patch) | |
tree | 4692abc579ecd8c252d4b637a323b9a1a85cfe20 /gcc/tree-ssa-phiopt.c | |
parent | 58e3b17f4c42d050a1768b025712e6d18bcb76ae (diff) | |
download | gcc-331e20a69be0d9e7d448580945945d4c7a1e3c0a.zip gcc-331e20a69be0d9e7d448580945945d4c7a1e3c0a.tar.gz gcc-331e20a69be0d9e7d448580945945d4c7a1e3c0a.tar.bz2 |
c++: deleted after first declaration [PR101106]
An explicitly deleted function must be deleted on its first declaration. We
were diagnosing this error only with -Wpedantic, but always giving the
"previous declaration" note. This patch removes the -Wpedantic dependency
and also makes the note depend on the previous diagnostic.
PR c++/101106
gcc/cp/ChangeLog:
* decl.c (duplicate_decls): Make 'deleted after first declaration'
pedwarn on by default.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/deleted15.C: New test.
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
0 files changed, 0 insertions, 0 deletions