[LLVMbugs] [Bug 11925] New: clang asserts if a function has a variably-modified return type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 4 17:36:41 PST 2012


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

             Bug #: 11925
           Summary: clang asserts if a function has a variably-modified
                    return type
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


This crashes clang:

int n; int (&f())[n];

lib/Sema/SemaDecl.cpp:5593: bool
clang::Sema::CheckFunctionDeclaration(clang::Scope *, clang::FunctionDecl *,
clang::LookupResult &, bool): Assertion
`!NewFD->getResultType()->isVariablyModifiedType() && "Variably modified return
types are not handled here"' failed.

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