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++/21363] no compilation error for inheriting Base class with private constructor when the constructor for Derived Class is compiler generated


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-05 05:12 -------
(In reply to comment #2)
> i don't think compiler generated constructor should have the "privilege" to
> invoke constructor of parent class which is private.

It does not but ICC does the same thing. Try creating an object of the class and you will see GCC errors 
out which is why I said it is due to the lazyness of the constructor.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21363


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