[Bug c++/21363] no compilation error for inheriting Base class with private constructor when the constructor for Derived Class is compiler generated

2005-05-05 Thread giovannibajo at libero dot it

--- Additional Comments From giovannibajo at libero dot it  2005-05-05 
13:54 ---
The compiler is allowed to generate syntectic methods as lazy as possible, 
which is upon the first actual use. Thus, this is not a bug.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID


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


[Bug c++/21363] no compilation error for inheriting Base class with private constructor when the constructor for Derived Class is compiler generated

2005-05-04 Thread pinskia 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


[Bug c++/21363] no compilation error for inheriting Base class with private constructor when the constructor for Derived Class is compiler generated

2005-05-04 Thread hingwah at hingwah dot net

--- Additional Comments From hingwah at hingwah dot net  2005-05-05 04:58 
---
i don't think compiler generated constructor should have the "privilege" to
invoke constructor of parent class which is private.

-- 


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


[Bug c++/21363] no compilation error for inheriting Base class with private constructor when the constructor for Derived Class is compiler generated

2005-05-03 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-03 
17:06 ---
I think this is how C++ works.  Or this because of the lazy createness of 
constructors.

-- 


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