public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7703: [2003-01-28] gcc gives parse errors when compiling a class function with recursively templated default value for a function parameter
@ 2003-05-02 1:26 Giovanni Bajo
0 siblings, 0 replies; only message in thread
From: Giovanni Bajo @ 2003-05-02 1:26 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/7703; it has been noted by GNATS.
From: "Giovanni Bajo" <giovannibajo@libero.it>
To: <gcc-gnats@gcc.gnu.org>,
<gcc-bugs@gcc.gnu.org>,
<nobody@gcc.gnu.org>,
<gcc-prs@gcc.gnu.org>,
<fizban@umich.edu>
Cc:
Subject: Re: c++/7703: [2003-01-28] gcc gives parse errors when compiling a class function with recursively templated default value for a function parameter
Date: Fri, 2 May 2003 03:19:25 +0200
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7703
This is only about the comma in the default parameter:
-----------------------------
template <class, class>
struct Bar
{};
template <class>
struct Foo
{
void func(Bar<void, void> b = Bar<void, void>())
{
}
};
template struct Foo<void>;
-----------------------------
pr7703.cpp:8: error: variable or field `func' declared void
pr7703.cpp:8: error: expected function-definition
I'm confident this is a duplicate but I could not find the other PR.
The obvious workaround is just to put a couple of parenthesis around the
default parameter to disambiguate the parser (which is confused by the
comma).
Since this is one of the points discussed in DR325, I suspend this PR till
the resolution of the defect report.
Giovanni Bajo
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-02 1:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-02 1:26 c++/7703: [2003-01-28] gcc gives parse errors when compiling a class function with recursively templated default value for a function parameter Giovanni Bajo
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).