aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2022-07-07 10:12:04 -0400
committerJason Merrill <jason@redhat.com>2022-07-07 11:56:09 -0400
commit81bec060e31b6ef2feeb3046c6f13a207c6f698a (patch)
treeb4ba8d61bf92cb0c9d49d5d3409b37722a97e9df /libcpp
parentd89fa97ff318b1f892e2629c5a249313872a01b1 (diff)
downloadgcc-81bec060e31b6ef2feeb3046c6f13a207c6f698a.zip
gcc-81bec060e31b6ef2feeb3046c6f13a207c6f698a.tar.gz
gcc-81bec060e31b6ef2feeb3046c6f13a207c6f698a.tar.bz2
c++: -Woverloaded-virtual and dtors [PR87729]
My earlier patch broke out of the loop over base members when we found a match, but that caused trouble for dtors, which can have multiple for which same_signature_p is true. But as the function comment says, we know this doesn't apply to [cd]tors, so skip them. PR c++/87729 gcc/cp/ChangeLog: * class.cc (warn_hidden): Ignore [cd]tors. gcc/testsuite/ChangeLog: * g++.dg/warn/Woverloaded-virt3.C: New test.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions