PR44978: Accept as an extension some cases where destructor name lookup
authorRichard Smith <richard@metafoo.co.uk>
Wed, 26 Feb 2020 22:50:04 +0000 (14:50 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Wed, 26 Feb 2020 22:55:31 +0000 (14:55 -0800)
commit98ed0c5475df57ca5cd4df0997d8bba323c843aa
treec32e55cf1a3fd00c6b942154d57d28c7a917a116
parent30f4362040fe28069e96c217856817e9014ab26d
PR44978: Accept as an extension some cases where destructor name lookup
is ambiguous, but only one of the possible lookup results could possibly
be right.

Clang recently started diagnosing ambiguity in more cases, and this
broke the build of Firefox. GCC, ICC, MSVC, and previous versions of
Clang all accept some forms of ambiguity here (albeit different ones in
each case); this patch mostly accepts anything any of those compilers
accept.
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaExprCXX.cpp
clang/test/SemaCXX/destructor.cpp