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

           Summary: Clang crash with dependent exception-specification on
                    function pointer
           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]


$ cat t.cpp 
void g() throw(int);

template<typename T>
void f() {
  void (*fp)() throw(T) = &g;
}

template void f<float>();  
terfin:clang dgregor$ clang++ t.cpp 
Assertion failed: (!isDependentType() && "This doesn't make sense for dependent
types"), function isConstantSizeType, file
/Volumes/Data/dgregor/Projects/llvm/tools/clang/lib/AST/Type.cpp, line 710.


I find it *very* suspicious that TreeTransform::TransformFunctionProtoType()
completely ignores exception specifications, and that
TemplateDeclInstantiator::InitFunctionInstantiation() then tries to handle
exception-specifications itself.

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