[Bug c++/17177] Can not explicitly call protected superclass constructor in method
jjamison at cs dot berkeley dot edu
gcc-bugzilla@gcc.gnu.org
Tue Aug 24 23:03:00 GMT 2004
------- Additional Comments From jjamison at cs dot berkeley dot edu 2004-08-24 23:03 -------
I assume the previous comment should be modified to read:
Protected non-static members are ....
as the following works:
--------------
class C
{
protected:
static void foo();
};
class D : public C
{
void bar ()
{
C c;
c.foo();
}
};
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17177
More information about the Gcc-bugs
mailing list