[Bug c++/48255] New: default constructor with argument INT
lisp2d at lisp2d dot net
gcc-bugzilla@gcc.gnu.org
Wed Mar 23 15:56:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48255
Summary: default constructor with argument INT
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: lisp2d@lisp2d.net
class A{
public:
};
A x; // OK
A y(1); //OK
I can't found that standard says: default constructor with argument INT.
By code protection I will write:
class A{
A(); // w/o definition
A(int); // w/o definition
public:
};
What to do?
More information about the Gcc-bugs
mailing list