[PATCH] D112633: [AST] fail rather than crash when const evaluating invalid c++ foreach

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 27 11:52:58 PDT 2021


hokein accepted this revision.
hokein added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/test/SemaCXX/constexpr-function-recovery-crash.cpp:73
+
+struct X { int a; } array[] = {{undef()}}; // expected-error {{use of undeclared identifier 'undef'}}
+constexpr void test11() {
----------------
this can be simplified further.

struct X {} array[] = {undef()};


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112633



More information about the cfe-commits mailing list