serge-sans-paille added inline comments.

================
Comment at: clang/test/SemaCXX/constant-expression-cxx11.cpp:1609
   struct X { int a[2]; };
   constexpr int *n = (X){1, 2}.a; // expected-warning {{C99}} expected-warning 
{{temporary}}
   // expected-error@-1 {{constant expression}}
----------------
@efriedma this is the test you asked for. it's already implemented, and my 
patch doesn't change its behavior, which matches the GCC behavior.


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

https://reviews.llvm.org/D124038

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to