public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9109: parse ambiguity
@ 2003-01-06 18:41 nathan
0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2003-01-06 18:41 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nathan, nathan
Synopsis: parse ambiguity
State-Changed-From-To: analyzed->closed
State-Changed-By: nathan
State-Changed-When: Mon Jan 6 10:41:28 2003
State-Changed-Why:
2003-01-06 Nathan Sidwell <nathan@codesourcery.com>
PR c++/9109
* parser.c (cp_parser_declarator_kind): New enum.
(cp_parser_declarator): Adjust.
(cp_parser_direct_declarator): Adjust. Allow for either named or
abstract declarator. Prefer abstract, if possible. Allow
parenthesized function name.
(cp_parser_condition): Adjust cp_parser_declarator call.
(cp_parser_explicit_instantiation): Likewise.
(cp_parser_init_declarator): Likewise.
(cp_parser_type_id): Likewise.
(cp_parser_function_definition): Likewise.
(cp_parser_member_declaration): Likewise.
(cp_parser_parameter_declaration): Use cp_parser_declarator to do
the tentative parsing.
(cp_parser_exception_declaration): Likewise.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9109
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/9109: parse ambiguity
@ 2002-12-30 12:39 nathan
0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2002-12-30 12:39 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nathan, nathan, nobody
Synopsis: parse ambiguity
Responsible-Changed-From-To: unassigned->nathan
Responsible-Changed-By: nathan
Responsible-Changed-When: Mon Dec 30 12:39:00 2002
Responsible-Changed-Why:
patching
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Mon Dec 30 12:39:00 2002
State-Changed-Why:
confirmed
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9109
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/9109: parse ambiguity
@ 2002-12-30 10:06 nathan
0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2002-12-30 10:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 9109
>Category: c++
>Synopsis: parse ambiguity
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Mon Dec 30 10:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: nathan
>Release: HEAD
>Organization:
>Environment:
>Description:
In the attached program the parameter 'int (T)' is parsed
as a parameter of type int called T with redundent parentheses. This is incorrect. It should be parsed as an unnamed parameter of type 'function taking T and returning int'. [8.2]/7 gives this ambiguity and resolution. An example
class C {};
void f(int (C)); //void f (int (*)(C))
is given
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="4672-3.ii"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="4672-3.ii"
dGVtcGxhdGUgPHR5cGVuYW1lIFQ+IHZvaWQgRm9vIChpbnQgKFQpKSB7fQo=
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-06 18:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-06 18:41 c++/9109: parse ambiguity nathan
-- strict thread matches above, loose matches on Subject: below --
2002-12-30 12:39 nathan
2002-12-30 10:06 nathan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).