[LLVMbugs] [Bug 8134] New: "This decl is not contained in a translation unit!" assertion failure using PCH
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Sep 12 19:20:09 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=8134
Summary: "This decl is not contained in a translation unit!"
assertion failure using PCH
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: llvmbugs at contacts.eelis.net
CC: llvmbugs at cs.uiuc.edu
If I have pre.hpp containing:
template<class T> void f(T);
template<class T> void f(T);
void g() { f(0); f('x'); }
Then if I do:
clang -cc1 pre.hpp -emit-pch -o pre.hpp.pch
echo | clang -cc1 -include-pch pre.hpp.pch -x c++ -
The second invocation results in:
clang: DeclBase.cpp:199: clang::TranslationUnitDecl*
clang::Decl::getTranslationUnitDecl(): Assertion
`DC && "This decl is not contained in a translation unit!"' failed.
I'm using Clang r113729.
--
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