[LLVMbugs] [Bug 8857] New: assertion failure in ASTStmtReader::VisitDependentScopeDeclRefExpr
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Dec 25 13:57:07 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=8857
Summary: assertion failure in
ASTStmtReader::VisitDependentScopeDeclRefExpr
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: brock.peabody at gmail.com
CC: llvmbugs at cs.uiuc.edu
with trunk, r122546, likely to do with precompiled headers. Note that I was
attempting to do this with 2.8, but was getting an error in the default
constructor for 'basic_string'; the solution for which was to use trunk.
the full error:
Assertion failed: ((NumTemplateArgs != 0) == E->hasExplicitTemplateArgs() &&
"Read wrong record during creation ?"), function
VisitDependentScopeDeclRefExpr, file ASTReaderStmt.cpp, line 1200.
to recreate, given the files:
pchheader.h = "#include <clang/AST/Stmt.h>\n"
foo.cpp = "int main() { return 0; }\n"
run:
clang -cc1 -x "c++-header" -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
pchheader.h -emit-pch -o pchheader.h.pch
clang -cc1 -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -include-pch
pchheader.h.pch foo.cpp
Any help would be greatly appreciated.
cheers, Brock
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list