[PATCH] D147920: [clang] Add test for CWG399
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 10 16:52:52 PDT 2023
shafik added inline comments.
================
Comment at: clang/test/CXX/drs/dr3xx.cpp:1492
+ // This is technically ill-formed; G is looked up in 'N::' and is not found.
+ // Rejecting this seems correct, but most compilers accept, so we do also.
+ f.N::F::~G(); // expected-error {{qualified destructor name only found in lexical scope; omit the qualifier to find this type name by unqualified lookup}}
----------------
You say we accept the next line but it has an `expected-error` on it?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147920/new/
https://reviews.llvm.org/D147920
More information about the cfe-commits
mailing list