This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] add to gcc-3.4/changes.html about PR11174
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Sat, 15 May 2004 14:53:09 -0400
- Subject: [PATCH] add to gcc-3.4/changes.html about PR11174
After getting another bug which was a dup of bug 11174, I decided to
document this in the changes.html for 3.4.0.
OK?
Should I add the c++ section which says this is invalid code?
Thanks,
Andrew Pinski
Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-3.4/changes.html,v
retrieving revision 1.121
diff -u -p -r1.121 changes.html
--- changes.html 15 May 2004 09:43:51 -0000 1.121
+++ changes.html 15 May 2004 18:49:58 -0000
@@ -578,6 +578,22 @@ and not your code, that is broken.</em><
This might be surprising at first sight, especially since most
popular compilers do not correctly implement this rule
(<a href="../bugs.html#cxx_rvalbind">further details</a>).</li>
+
+ <li>Derived classes can no longer access protected bass class
members
+ through pointer to members. For instance, consider the following
+ code:
+ struct A
+ {
+ protected:
+ int a;
+ };
+ struct B : A
+ {
+ void foo()
+ {
+ (void)&A::a; //error, a is not accessible
+ }
+ };
</ul>
<h4>Runtime Library (libstdc++)</h4>