G++ namespace association extension

Jason Merrill jason@redhat.com
Mon Jul 9 13:18:00 GMT 2012


On 07/09/2012 01:26 PM, Jonathan Wakely wrote:
> http://gcc.gnu.org/onlinedocs/gcc/Namespace-Association.html says:
>
> "Caution: The semantics of this extension are not fully defined. Users
> should refrain from using this extension as its semantics may change
> subtly over time. It is possible that this extension will be removed
> in future versions of G++. "
>
> Is it safe to assume that the semantics are now fixed to match those
> of C++11 inline namespaces and will not change unless removed?

Yes, but people should use inline namespaces instead; we should 
deprecate this form and then remove it in 4.9.

Jason



More information about the Gcc mailing list