This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21363] no compilation error for inheriting Base class with private constructor when the constructor for Derived Class is compiler generated
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 May 2005 05:12:57 -0000
- Subject: [Bug c++/21363] no compilation error for inheriting Base class with private constructor when the constructor for Derived Class is compiler generated
- References: <20050503163058.21363.hingwah@hingwah.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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