This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ Extension: Default argument circularity stuff
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: mark at codesourcery dot com
- Cc: gcc at gcc dot gnu dot org, jason at redhat dot com
- Date: Fri, 20 Sep 2002 09:51:02 +0100
- Subject: Re: C++ Extension: Default argument circularity stuff
- Organization: Codesourcery LLC
- References: <200209192245.g8JMjPd27343@localhost.localdomain>
Mark Mitchell wrote:
I never understood the motivation for that change in the first place
(as far as I can tell, the standard does not require us to jump
through these hoops, nor does any other compiler behave like G++).
I blame me. The standard had no restriction saying it would not work -
neither does it have words to say that it will. IIRC g++ processed
them in reverse declaration order - which would definitely be bogus. It
looked like an interesting problem ...
Do we need to keep this stuff, or can it go away in the new parser?
we decided to kill it on the first incarnation of the new parser.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org