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: unassignedclangb...@nondot.org
Reporter: picke...@synopsys.com
CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs