http://llvm.org/bugs/show_bug.cgi?id=16081

            Bug ID: 16081
           Summary: delayed template parsing and eager constexpr
                    evaluation result in assertion
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

template<typename Type> struct Test { constexpr Test() {} };
template<typename T> void test() { Test<T> x; } 
void f() { test<int>(); }

... built with: clang -x c++ -std=c++11 -fdelayed-template-parsing

gives:

clang-3.3: lib/Sema/SemaDecl.cpp:914: void
clang::Sema::PushDeclContext(clang::Scope *, clang::DeclContext *): Assertion
`getContainingDC(DC) == CurContext && "The next DeclContext should be lexically
contained in the current one."' failed.

-- 
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