This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48255] New: default constructor with argument INT
- From: "lisp2d at lisp2d dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2011 15:43:27 -0000
- Subject: [Bug c++/48255] New: default constructor with argument INT
- Auto-submitted: auto-generated
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?