This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17177] Can not explicitly call protected superclass constructor in method


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]