[LLVMbugs] [Bug 8835] New: Clang crash with dependent exception-specification on function pointer

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 20 15:51:02 PST 2010


           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: unassignedclangbugs at nondot.org
        ReportedBy: dgregor at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

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

More information about the llvm-bugs mailing list