[llvm-bugs] [Bug 37907] New: Incorrect C++ syntax caused compiler abnormal termination
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jun 22 09:41:55 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37907
Bug ID: 37907
Summary: Incorrect C++ syntax caused compiler abnormal
termination
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: pickensd at synopsys.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
The following C++ test case causes clang to crash during error recovery.
Assertion failed: CachedTokens[CachedLexPos-1].getLastLoc() ==
Tok.getAnnotationEndLoc() && "The annotation should be until the most recent
cached token", file
C:\src\llvm_package_333363\llvm\tools\clang\lib\Lex\PPCaching.cpp, line 133
-------- test.cc --------------------------
template<int> struct A
{
static int i;
};
template<int N> int A<N>::i(decltype (A::i;
--
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/20180622/93425568/attachment.html>
More information about the llvm-bugs
mailing list