http://llvm.org/bugs/show_bug.cgi?id=12023
Bug #: 12023
Summary: clang incorrectly accepts initializer for array new
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Testcase:
struct CopyCounter
{
CopyCounter();
CopyCounter(const CopyCounter&);
};
int main()
{
CopyCounter* f = new CopyCounter[10](CopyCounter());
return 0;
}
I'm pretty sure this isn't supposed to be allowed... but somehow, it is.
--
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