This is the mail archive of the gcc@gcc.gnu.org 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]

Re: [C++] Extensions deprecated in 3.4


Giovanni Bajo wrote:

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?

Yup, it still a work in progress however.


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


I am not sure about this part. But diagnostics is produced in GCC 3.4, 4.0 but not 3.3 for the following code:

typedef void (*f)(int = 0);

So I think it's already implemented.


--Kriang





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