c++/729
nathan@gcc.gnu.org
nathan@gcc.gnu.org
Sun Dec 24 07:46:00 GMT 2000
The following reply was made to PR c++/729; it has been noted by GNATS.
From: nathan@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org, rovf@earthling.net
Cc:
Subject: Re: c++/729
Date: 24 Dec 2000 15:39:48 -0000
Synopsis: compiler does not recognize variable definition
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Sun Dec 24 07:39:47 2000
State-Changed-Why:
Gcc may or may not be correct here, I can't tell from the standard. If `p' was initialized by a single arg ctor. i.e.
NameMap::value_type p (string (name)), then the standard
is clear that that must be read as a prototype for function
'p'. I think that's in 6.8 (don't have a std in front of me
now). However, your example has two parameters that only becomes not-a-prototype at the second parameter 'info'. It's
unclear (to me) as to whether this sort of thing should be
dealt with as a variable definition.
Anyway, needs a better parser I guess.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=729&database=gcc
More information about the Gcc-prs
mailing list