public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8921: Trouble with member templates
@ 2002-12-13  2:08 reichelt
  0 siblings, 0 replies; 4+ messages in thread
From: reichelt @ 2002-12-13  2:08 UTC (permalink / raw)
  To: evirt, gcc-bugs, gcc-prs, nobody

Synopsis: Trouble with member templates

State-Changed-From-To: open->analyzed
State-Changed-By: reichelt
State-Changed-When: Fri Dec 13 02:08:06 2002
State-Changed-Why:
    Confirmed.
    Happens since at least gcc 2.95.x.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8921


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/8921: Trouble with member templates
@ 2003-01-12 23:56 Volker Reichelt
  0 siblings, 0 replies; 4+ messages in thread
From: Volker Reichelt @ 2003-01-12 23:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/8921; it has been noted by GNATS.

>From reichelt@igpm.rwth-aachen.de  Mon Jan 13 01:06:07 2003
From: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
To: evirt@iis.sinica.edu.tw, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Cc:  
Subject: Re: c++/8921: Trouble with member templates
Date: Mon, 13 Jan 2003 01:49:32 +0100

 Just for the record:
 The bug is fixed in gcc 3.4-20021230 with the new parser.
 (Testcase in preparation.)
 
 Regards,
 Volker
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8921
 
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/8921: Trouble with member templates
@ 2002-12-13  7:19 bangerth
  0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2002-12-13  7:19 UTC (permalink / raw)
  To: evirt, gcc-bugs, gcc-prs, nobody

Synopsis: Trouble with member templates

State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Fri Dec 13 07:19:38 2002
State-Changed-Why:
    It's a well known bug that we have already documented in
    some other reports. Use the "template" keyword once more,
    as a workaround:
        a.template foo<T>();
    
    Thanks for your report anyway.
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8921


^ permalink raw reply	[flat|nested] 4+ messages in thread

* c++/8921: Trouble with member templates
@ 2002-12-13  2:06 evirt
  0 siblings, 0 replies; 4+ messages in thread
From: evirt @ 2002-12-13  2:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8921
>Category:       c++
>Synopsis:       Trouble with member templates
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 13 02:06:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Chin-Lung Chang
>Release:        3.2 20020903
>Organization:
>Environment:
Red Hat Linux 8.0 3.2-7
>Description:
The following code is rejected by gcc:

----------------snip here------------------
struct A
{
   template <typename T> void foo();
};

template <typename T> void bar(A& a)
{
    a.foo<T>();
}

void baz()
{
    A a;
    bar<int>(a);
}
----------------snip here------------------

bug.cc: In function `void bar(A&)':
bug.cc:8: error: parse error before `>' token
>How-To-Repeat:
g++ -c bug.cc
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-12 23:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-13  2:08 c++/8921: Trouble with member templates reichelt
  -- strict thread matches above, loose matches on Subject: below --
2003-01-12 23:56 Volker Reichelt
2002-12-13  7:19 bangerth
2002-12-13  2:06 evirt

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