This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30759] New: initializer-list accepted for object of non-POD type
- From: "gdr at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Feb 2007 19:56:12 -0000
- Subject: [Bug c++/30759] New: initializer-list accepted for object of non-POD type
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Current GCC accepts the following
struct A {
A(int) { }
};
int main()
{
A a = { 6 };
}
which is invalid.
This is a regression from GCC-3.3.x
--
Summary: initializer-list accepted for object of non-POD type
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gdr at gcc dot gnu dot org
GCC host triplet: platform independent
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30759