public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10141: Member template parsing problem
@ 2003-03-19 1:16 Joe Buck
0 siblings, 0 replies; 4+ messages in thread
From: Joe Buck @ 2003-03-19 1:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/10141; it has been noted by GNATS.
From: Joe Buck <jbuck@synopsys.com>
To: gcc-gnats@gcc.gnu.org, rodrigo@esss.com.br, gcc-bugs@gcc.gnu.org
Cc:
Subject: Re: c++/10141: Member template parsing problem
Date: Tue, 18 Mar 2003 17:10:17 -0800
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10141
I'm going to close this one, since there is no bug in the example. Possibly
there is a mistake in the submission; if so, please file another bug report.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/10141: Member template parsing problem
@ 2003-03-19 1:11 jbuck
0 siblings, 0 replies; 4+ messages in thread
From: jbuck @ 2003-03-19 1:11 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, rodrigo
Synopsis: Member template parsing problem
State-Changed-From-To: open->closed
State-Changed-By: jbuck
State-Changed-When: Wed Mar 19 01:11:26 2003
State-Changed-Why:
Not a bug; the example is not legal code.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10141
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/10141: Member template parsing problem
@ 2003-03-18 21:36 Giovanni Bajo
0 siblings, 0 replies; 4+ messages in thread
From: Giovanni Bajo @ 2003-03-18 21:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/10141; it has been noted by GNATS.
From: "Giovanni Bajo" <giovannibajo@libero.it>
To: <gcc-gnats@gcc.gnu.org>,
<rodrigo@esss.com.br>,
<gcc-bugs@gcc.gnu.org>,
<nobody@gcc.gnu.org>,
<gcc-prs@gcc.gnu.org>
Cc:
Subject: Re: c++/10141: Member template parsing problem
Date: Tue, 18 Mar 2003 22:30:15 +0100
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
r=10141
Your snippet does not make much sense, since there is no Foo::NumOf in the
sight. If you rename NumOf into Bar, it works.
Probably you did a mistake reducing the snippet. Anyway, the code is also
missing the template keyword to disambiguate the parser (use return
foo.template Bar<T1>()).
Not a bug, unless the poster provides another snippet.
Giovanni Bajo
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/10141: Member template parsing problem
@ 2003-03-18 21:06 rodrigo
0 siblings, 0 replies; 4+ messages in thread
From: rodrigo @ 2003-03-18 21:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 10141
>Category: c++
>Synopsis: Member template parsing problem
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Tue Mar 18 21:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Rodrigo Lucianetti
>Release: 3.2.2
>Organization:
>Environment:
linux redhat 8.0,dual AMD athlon MP 1800
>Description:
bug.cpp: In member function `unsigned int Foo2<T1>::Bar(Foo<C1>)':
bug.cpp:18: parse error before `;' token
>How-To-Repeat:
c++ -c -o bug.o bug.cpp
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="bug.cpp"
Content-Disposition: inline; filename="bug.cpp"
template<class C>
class Foo {
public:
template<class T>
unsigned Bar()
{
return 0;
}
};
template<class T1>
class Foo2 {
public:
template<class C1>
unsigned Bar( Foo<C1> foo )
{
return foo.NumOf<T1>();
}
};
int main()
{
Foo<int> foo;
foo.Bar<int>();
Foo2<int> foo2;
foo2.Bar( foo );
return 0;
}
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-03-19 1:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-19 1:16 c++/10141: Member template parsing problem Joe Buck
-- strict thread matches above, loose matches on Subject: below --
2003-03-19 1:11 jbuck
2003-03-18 21:36 Giovanni Bajo
2003-03-18 21:06 rodrigo
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).