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++/15468] New: Can not take address of protected method in base class.


gcc version: gcc 3.4.0 tarball.
system type: Red Hat Linux 9, x86.
options given when building gcc: None.
command line to trigger bug: g++ test.cc

compiler output:
gcc34test.cc: In constructor `B::B()':
gcc34test.cc:25: error: `virtual void A::do_something()' is protected
gcc34test.cc:32: error: within this context

the preprocessed file (*.i*) that triggers the bug: Attached.

-- 
           Summary: Can not take address of protected method in base class.
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: murrayc at murrayc dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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