[LLVMbugs] [Bug 22387] New: Zero length arrays require a default constructor
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jan 29 10:01:39 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22387
Bug ID: 22387
Summary: Zero length arrays require a default constructor
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: mclow.lists at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
class Foo { public: Foo(int) {} };
int main ()
{
Foo a1[0]; // fails to compile
Foo a3[0] = {}; // compiles successfully
}
This seems wrong to me.
It's complaining about the lack of a default constructor which will never be
called.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150129/d308adde/attachment.html>
More information about the llvm-bugs
mailing list