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]

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?


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>
+<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>

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