public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: nathan@codesourcery.com To: gcc-gnats@gcc.gnu.org Subject: c++/9109: parse ambiguity Date: Mon, 30 Dec 2002 10:06:00 -0000 [thread overview] Message-ID: <20021230180002.20069.qmail@sources.redhat.com> (raw) >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=
next reply other threads:[~2002-12-30 18:06 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-12-30 10:06 nathan [this message] 2002-12-30 12:39 nathan 2003-01-06 18:41 nathan
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20021230180002.20069.qmail@sources.redhat.com \ --to=nathan@codesourcery.com \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).