This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/48255] New: default constructor with argument INT


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]