[Bug c++/30759] New: initializer-list accepted for object of non-POD type
gdr at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Feb 10 19:56:00 GMT 2007
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
More information about the Gcc-bugs
mailing list