[C++] Extensions deprecated in 3.4

Giovanni Bajo giovannibajo@libero.it
Tue Nov 2 11:52:00 GMT 2004


Hello,

http://gcc.gnu.org/gcc-3.4/changes.html lists the following two extensions as
deprecated:

Default arguments in function types have been deprecated and will be removed.
ARM-style name-injection of friend declarations has been deprecated and will be
removed. For example: struct S { friend void f(); }; void g() { f(); } will not
be accepted by future versions of G++; instead a declaration of "f" will need
to be present outside of the scope of "S".

I believe the latter is being taken care of by Kriang with his work on friend
name injection, right?

What about the first? Was it already removed from 4.0?

Giovanni Bajo




More information about the Gcc mailing list