[PATCH] D151034: [clang] Add test for CWG1397

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 22 11:21:37 PDT 2023


shafik added inline comments.


================
Comment at: clang/test/CXX/drs/dr13xx.cpp:488
+#if __cplusplus == 201103L
+  // expected-error@#dr1397-struct-A {{default member initializer for 'p' needed within definition of enclosing class 'A' outside of member functions}}
+  // expected-note@#dr1397-void-p {{in evaluation of exception specification for 'dr1397::A::A' needed here}}
----------------
These diagnostic are pretty bad, maybe provide a comment above explaining them a little better or maybe better refactor the diagnostic?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151034



More information about the cfe-commits mailing list