public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/6772: Template-qualified default argument gives parse error
@ 2002-05-23 6:53 lerdsuwa
0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-05-23 6:53 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jsberg, nobody
Synopsis: Template-qualified default argument gives parse error
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Thu May 23 06:53:20 2002
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6772
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/6772: Template-qualified default argument gives parse error
@ 2003-01-23 2:07 bangerth
0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-01-23 2:07 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jsberg, nobody
Synopsis: Template-qualified default argument gives parse error
State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Thu Jan 23 02:07:42 2003
State-Changed-Why:
There are several other instances of this bug in the database.
It's an open DR, concerning parsing of default arguments
with template IDs (present wording is: a default arg goes
until the next comma not within parentheses).
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6772
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/6772: Template-qualified default argument gives parse error
@ 2002-05-22 11:36 jsberg
0 siblings, 0 replies; 3+ messages in thread
From: jsberg @ 2002-05-22 11:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 6772
>Category: c++
>Synopsis: Template-qualified default argument gives parse error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Wed May 22 11:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:
>Release: 3.1
>Organization:
>Environment:
System: Linux jsberg1 2.4.18 #1 SMP Fri May 17 19:53:05 EDT 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.1/configure --prefix=/opt/gcc-3.1 --enable-threads
>Description:
If test01.cc is the code given below in How-To-Repeat, then
c++ -Wall -ansi -pedantic -c test01.cc
test01.cc:9: type specifier omitted for parameter `M'
test01.cc:9: parse error before `>' token
>How-To-Repeat:
c++ -Wall -ansi -pedantic -c test01.cc
template<typename T, int N> class A {
public:
static const int i=1;
};
template<typename T, int M> class B {
public:
void f(int j=A<T,M>::i);
};
>Fix:
Workaround: insert parentheses around A<T,M>::i or A<T,M>
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-23 2:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-23 6:53 c++/6772: Template-qualified default argument gives parse error lerdsuwa
-- strict thread matches above, loose matches on Subject: below --
2003-01-23 2:07 bangerth
2002-05-22 11:36 jsberg
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).