[PATCH] D120812: [AST] Use RecoveryExpr to model a DeclRefExpr which refers to an invalid Decl.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 2 06:44:33 PST 2022


hokein added inline comments.


================
Comment at: clang/test/SemaCXX/copy-assignment.cpp:117
     A(UndeclaredType n) : X(n) {} // expected-error {{unknown type name 'UndeclaredType'}}
+    // expected-error at -1 {{member initializer 'X' does not name a non-static data member or base class}}
   };
----------------
This is a bogus diagnostic "accidentally" caused by this change, this is an existing problem in clang where we discard ill-formed base specifier.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120812/new/

https://reviews.llvm.org/D120812



More information about the cfe-commits mailing list