===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/bugs/index.html,v
retrieving revision 1.113
@@ -350,7 +350,8 @@
anything).</p></dd>
-<dt>Casting does not work as expected when optimization is turned on.</dt>
+<dt id="casting_and_optimization">Casting does not work as expected when
+optimization is turned on.</dt>
<dd><p>This is often caused by a violation of aliasing rules, which are part
of the ISO C standard. These rules say that a program is invalid if you try
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.4/porting_to.html,v
retrieving revision 1.9
@@ -95,10 +95,10 @@
using <code>-fno-strict-aliasing </code> or by ignoring this class of
warning via <code>-Wno-strict-aliasing</code>. To fix, access the
structure from pointers of an equivalent type, use a union, use
-memcpy, or (if using C++) use placement new. See the section titled
-"Casting does not work as expected when optimization is turned
-on" on <a href="http://gcc.gnu.org/bugs/">bug reporting
-documentation page</a> for more information.
+memcpy, or (if using C++) use placement <code>new</code>.
+See the section <a href="../bugs/#casting_and_optimization">
+Casting does not work as expected when optimization is turned on</a>
+in our bug reporting documentation for more information.
</p>
<h2>C++ language issues</h2>