diff options
author | Jason Merrill <jason@redhat.com> | 2022-07-07 10:12:04 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-07-07 11:56:09 -0400 |
commit | 81bec060e31b6ef2feeb3046c6f13a207c6f698a (patch) | |
tree | b4ba8d61bf92cb0c9d49d5d3409b37722a97e9df /libcpp/include | |
parent | d89fa97ff318b1f892e2629c5a249313872a01b1 (diff) | |
download | gcc-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/include')
0 files changed, 0 insertions, 0 deletions