This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17177] Can not explicitly call protected superclass constructor in method
- From: "jjamison at cs dot berkeley dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Aug 2004 23:03:27 -0000
- Subject: [Bug c++/17177] Can not explicitly call protected superclass constructor in method
- References: <20040824204542.17177.jjamison@cs.berkeley.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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