You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Extended Description
If I have pre.hpp containing:
template void f(T);
template 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.
The text was updated successfully, but these errors were encountered: