[LLVMbugs] [Bug 11965] New: Error without source location with qualified function type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 9 18:37:03 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11965
Bug #: 11965
Summary: Error without source location with qualified function
type
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Testcase:
typedef int a() const;
void* x = (void*)new a;
Currently gives:
error: a qualified function type cannot be used to declare a nonmember function
<stdin>:2:22: error: cannot allocate function type 'int ()' with new
void* x = (void*)new a;
^
2 errors generated.
The first error makes absolutely no sense.
--
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