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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs