This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10016: g++ allows access to static private class members if initialized
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, thor at math dot tu-berlin dot de
- Date: 10 Mar 2003 15:49:42 -0000
- Subject: Re: c++/10016: g++ allows access to static private class members if initialized
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, thor at math dot tu-berlin dot de, gcc-gnats at gcc dot gnu dot org
Synopsis: g++ allows access to static private class members if initialized
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Mon Mar 10 15:49:42 2003
State-Changed-Why:
Confirmed. However, already fixed in 3.4:
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc: In member function `int B::MyFoo()':
x.cc:4: error: `int A::foo' is private
x.cc:10: error: within this context
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10016