public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/38313]  New: g++ fails to parse a member function with a parenthesized type name as its declarator
@ 2008-11-28 21:18 jason at gcc dot gnu dot org
  2008-11-28 21:19 ` [Bug c++/38313] " jason at gcc dot gnu dot org
  0 siblings, 1 reply; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-11-28 21:18 UTC (permalink / raw)
  To: gcc-bugs

This testcase:

struct foo { };
struct bar { };

struct baz {
  static foo (bar)();
};

confuses cp_parser_constructor_declarator_p, which just looks as far as foo
(bar) before deciding incorrectly that this is a constructor declarator.

This is related to PR 38278, but is a much older issue; it fails as far back as
3.4, though 3.2 seems to accept it.


-- 
           Summary: g++ fails to parse a member function with a
                    parenthesized type name as its declarator
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jason at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38313


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <bug-38313-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2013-11-03 23:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-28 21:18 [Bug c++/38313] New: g++ fails to parse a member function with a parenthesized type name as its declarator jason at gcc dot gnu dot org
2008-11-28 21:19 ` [Bug c++/38313] " jason at gcc dot gnu dot org
     [not found] <bug-38313-4@http.gcc.gnu.org/bugzilla/>
2013-11-03 16:57 ` paolo.carlini at oracle dot com
2013-11-03 23:51 ` paolo at gcc dot gnu.org
2013-11-03 23:53 ` paolo.carlini at oracle dot com

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).