[PATCH][www] Mention C++ change wrt hiding names

Manuel López-Ibáñez lopezibanez@gmail.com
Mon Sep 24 15:34:00 GMT 2007


I think this needs to go under "Caveats".

Cheers,

Manuel.

On 24/09/2007, Richard Guenther <rguenther@suse.de> wrote:
>
> Ok for www?
>
> Thanks,
> Richard.
>
> Index: changes.html
> ===================================================================
> RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.3/changes.html,v
> retrieving revision 1.74
> diff -u -r1.74 changes.html
> --- changes.html        20 Sep 2007 12:14:29 -0000      1.74
> +++ changes.html        24 Sep 2007 14:42:35 -0000
> @@ -269,6 +269,23 @@
>    easier to port larger projects using shared libraries from Microsoft's
>    Visual Studio to ELF and Mach-O systems.</li>
>
> +  <li>GCC by default no longer accepts code such as
> +  <pre>
> +    template <class _Tp> class auto_ptr {};
> +    template <class _Tp>
> +    class counted_ptr
> +    {
> +    public:
> +      auto_ptr<_Tp> auto_ptr();
> +    };</pre>
> +  but will issue the diagnostic
> +  <pre>
> +    error: declaration of 'auto_ptr<_Tp> counted_ptr<_Tp>::auto_ptr()'
> +    error: changes meaning of 'auto_ptr' from 'class auto_ptr<_Tp>'</pre>
> +  The reference to <code>auto_ptr</code> needs to be qualified here.
> +  This error can be turned into a warning with <code>-fpermissive</code>.
> +  Note that then in some case name lookup will not be standard conforming.</li>
> +
>    </ul>
>
>    <h4>Runtime Library (libstdc++)</h4>
>



More information about the Gcc-patches mailing list