You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code compiles fine on clang (14.0 and latest trunk), even though the destructor of Foobar is not called ~Foobar but ~Node. GCC reports an error as expected.
We didn't check that a destructor's name matches the directly enclosing class if the class was dependent.
I enabled the check we already had for non-dependent types, which seems to work. Added appropriate tests.
Fixes GitHub issue #56772
Reviewed By: erichkeane
Differential Revision: https://reviews.llvm.org/D130936
The following code compiles fine on clang (14.0 and latest trunk), even though the destructor of
Foobar
is not called~Foobar
but~Node
. GCC reports an error as expected.https://godbolt.org/z/T8jTrPYW1
The text was updated successfully, but these errors were encountered: