[Bug c++/19249] abstract classes should not access virtually inherited class constructor

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jan 4 09:15:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-04 09:14 -------
Bss, this is invalid and not because the standard only says he constructor is ignored.
12.6.2P6:
"If V does not have an accessible default constructor, the initialization is ill-formed.  A mem-initializer 
naming a a virtual bass class shall be ignored during execution of the constructor of any class that is 
not the most derived class."  So it says ignored, ignored does not mean not checking for accessible.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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



More information about the Gcc-bugs mailing list