public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10477: Function call not recognized as template
@ 2003-04-24 13:21 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-04-24 13:21 UTC (permalink / raw)
  To: bartoschek, gcc-bugs, gcc-prs, nobody

Synopsis: Function call not recognized as template

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Thu Apr 24 13:21:18 2003
State-Changed-Why:
    Already fixed in 3.3 and mainline (3.4)

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


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

* c++/10477: Function call not recognized as template
@ 2003-04-24  8:36 bartoschek
  0 siblings, 0 replies; 2+ messages in thread
From: bartoschek @ 2003-04-24  8:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10477
>Category:       c++
>Synopsis:       Function call not recognized as template
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 24 08:36:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     bartoschek@gmx.de
>Release:        3.2.3
>Organization:
>Environment:
RedHat 9 and Suse Linux 8.2
>Description:
The attached code does not compile. And gives the error

error.C: In member function `void B::f(int)':
error.C:15: parse error before `>' token

The fist < is recognized as operator< and not as the beginning of template arguments.

If you delete Line 11:
class C {};

the code compiles fine. Class C should not affect in any way the behaviour of void B::f(int).

If you delete Class A and use Class C as a template argument:


void B::f(int a)
{
   f<C>();
}

it still does not compile. (class C has to be defined between class B and void B::f(int a))
>How-To-Repeat:
g++ -c error.C
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="error.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="error.C"

Y2xhc3MgQSB7fTsKCmNsYXNzIEIKewpwdWJsaWM6CiAgIHRlbXBsYXRlPHR5cGVuYW1lIFQ+CiAg
IGlubGluZSB2b2lkIGYoKSB7fQogICBpbmxpbmUgdm9pZCBmKGludCBhKTsKfTsKCmNsYXNzIEMg
e307Cgp2b2lkIEI6OmYoaW50IGEpCnsKICAgZjxBPigpOwp9Cg==


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

end of thread, other threads:[~2003-04-24 13:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-24 13:21 c++/10477: Function call not recognized as template bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-04-24  8:36 bartoschek

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