This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [C++] Extensions deprecated in 3.4
- From: Kriang Lerdsuwanakij <lerdsuwa at users dot sourceforge dot net>
- To: Giovanni Bajo <giovannibajo at libero dot it>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 03 Nov 2004 18:37:38 +0700
- Subject: Re: [C++] Extensions deprecated in 3.4
- References: <1b5c01c4c0d2$c1faa2b0$46b92997@bagio>
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