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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to