[llvm-bugs] [Bug 21855] [fuzz] Assertion `Field->getInClassInitializer() && "initializer hasn't been parsed"' failed.
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Feb 21 14:19:43 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=21855
Reid Kleckner <rnk at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Reid Kleckner <rnk at google.com> ---
Looks like this was fixed. Erich's example gives a proper error like so:
template <class> struct A {
int N = sizeof(A<wchar_t>) / ;
void F() { A<wchar_t> a; }
};
$ clang -cc1 -std=c++11 t.cpp -emit-llvm
t.cpp:3:37: error: expected expression
int N = sizeof (A < wchar_t >) /;
^
1 error generated.
And the original attached test case doesn't crash.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190221/627103a2/attachment-0001.html>
More information about the llvm-bugs
mailing list