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


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

Reply via email to