This is the mail archive of the 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]

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


Should I add the c++ section which says this is invalid code?

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)&amp;A::a; //error, a is not accessible
+ }
+ };

<h4>Runtime Library (libstdc++)</h4>

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