shafik added inline comments.
================ Comment at: clang/test/SemaCXX/statements.cpp:60-61 + int i; + int j = ({i;}); // expected-error {{invalid use of non-static data member 'i'}} + // expected-error@-1 {{cannot initialize a member subobject of type 'int' with an rvalue of type 'void'}} + // expected-warning@-2 {{use of GNU statement expression extension}} ---------------- aaron.ballman wrote: > This diagnostic isn't entirely unreasonable, but I think GCC gives a better > diagnostic: https://godbolt.org/z/T4dbhnoo7 Yeah, probably worth filing a bug for this after I land this. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D142490/new/ https://reviews.llvm.org/D142490 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits