This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Note C++ friend injection change in gcc-4.1/changes.html
- From: Ian Lance Taylor <ian at airs dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 12 Sep 2005 15:22:51 -0700
- Subject: Note C++ friend injection change in gcc-4.1/changes.html
This patch to gcc-4.1/changes.html notes the change I just checked in
to the way that friend functions are handled. It's copied from
gcc-3.4/changes.html with the appropriate modifications.
Tested by, um, looking at the file in my browser. I'm not sure how
else to test it.
OK to check in?
Ian
Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.1/changes.html,v
retrieving revision 1.8
diff -u -r1.8 changes.html
--- changes.html 24 Aug 2005 19:04:13 -0000 1.8
+++ changes.html 12 Sep 2005 22:20:44 -0000
@@ -162,6 +162,24 @@
bit easier.</li>
</ul>
+<h3 id="cplusplus">C++</h3>
+ <ul>
+ <li>ARM-style name-injection of friend declarations is no longer
+ the default. For example:
+
+ <pre>
+ struct S {
+ friend void f();
+ };
+
+ void g() { f(); }</pre>
+
+ will not be accepted; instead a declaration of "f" will need
+ to be present outside of the scope of "S". The new
+ <code>-ffriend-injection</code> option will enable the old
+ behavior.</li>
+ </ul>
+
<h2>New Targets and Target Specific Improvements</h2>
<h3>IA-32/x86-64</h3>