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

           Summary: Assertion `D->isInvalidDecl() && "declaration was not
                    instantiated in this scope!"' failed in many boost
                    examples
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


The following code causes an assertion in a current svn head. It only appeared
recently. I can reproduce this in an asserts+debug build.

The code appears valid, and is accepted by g++.

template<typename > struct allocator ;
template<typename > struct less ;


template <class , template<class>class = less> struct interval_type_default ;

template <class T, template<class _T, template<class>class Compare = less,
class = typename interval_type_default<_T,Compare>::type, template<class> class
= allocator> class IntervalSet>
int int40()
{
IntervalSet<T> IntervalSetT;
}

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