This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [C++] Deprecating default arguments on function types
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>
- Date: 21 Jul 2003 07:40:41 -0700
- Subject: Re: [C++] Deprecating default arguments on function types
- References: <3F1BE5C3.9020300@codesourcery.com>
On Mon, 2003-07-21 at 06:08, Nathan Sidwell wrote:
> Can we deprecate
> typedef int (*P) (int = 1);
> int f (P p) { return p ();}
> ?
>
> 3.4 only allows it (with pedwarn) when -fpermissive is in effect.
> I'd like to deprecate it entirely. (deprecate in 3.4, remove in 3.5)
That works for me.
Jason is the traditional defender-of-the-traditional. If he doesn't
object, go for it.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com