[PATCH] D37797: Fix crash in Sema when wrongly assuming VarDecl init is not value dependent.

Vassil Vassilev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 23 14:00:13 PST 2018


v.g.vassilev added a comment.

Could you double-check if we can add this to an existing test? Would `test/SemaCXX/pr25181-crash-on-invalid.cpp` fit and potentially rename it.



================
Comment at: test/SemaCXX/cxx11-odr-use-crash-on-invalid.cpp:8
+c : d() { // expected-error {{unexpected ':'}} \
+                                // expected-error {{nested name specifier 'c::' for declaration does not refer}}
+  c &e = b<c>;
----------------
Looks like this line has spacing problems.


https://reviews.llvm.org/D37797





More information about the cfe-commits mailing list