[LLVMbugs] [Bug 16081] New: delayed template parsing and eager constexpr evaluation result in assertion

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 20 21:58:55 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130521/8bf82cc0/attachment.html>


More information about the llvm-bugs mailing list