public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9543: Syntax error on calling a template method from a template function
@ 2003-02-03 10:06 petridis
  0 siblings, 0 replies; 2+ messages in thread
From: petridis @ 2003-02-03 10:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9543
>Category:       c++
>Synopsis:       Syntax error on calling a template method from a template function
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 03 10:06:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     petridis@iit.demokritos.gr
>Release:        gcc version 3.2 20020927 (prerelease)
>Organization:
>Environment:
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-3/configure --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr
--sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin
Thread model: posix
>Description:
The problem occurs when calling a template method of a class, the parameter of which is not among its arguments and hence must be explicitely given. The class need not be a template class.

In addition, the calling point should be inside a template function.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.ii"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.ii"

IyAxICJ0ZXN0LmNwcCIKIyAxICI8YnVpbHQtaW4+IgojIDEgIjxjb21tYW5kIGxpbmU+IgojIDEg
InRlc3QuY3BwIgoKY2xhc3MgQQp7CnB1YmxpYzoKICB0ZW1wbGF0ZTx0eXBlbmFtZSBUPgogIHZv
aWQgZm9vKCkKICB7CgoKICB9OwoKfTsKCnRlbXBsYXRlPHR5cGVuYW1lIFQ+CnZvaWQgZiggQSAm
IGEgKQp7CgogIGEuZm9vPGludD4oKTsKfTsKCmludCBtYWluKCkKewoKICBBIGE7CgogIGY8aW50
PihhKTsKCgp9Owo=


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

* Re: c++/9543: Syntax error on calling a template method from a template function
@ 2003-02-03 16:41 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-02-03 16:41 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, petridis

Synopsis: Syntax error on calling a template method from a template function

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Mon Feb  3 16:40:58 2003
State-Changed-Why:
    Confirmed, but fixed in present mainline.
    
    A workaround for the meantime is to use
        a.template foo<int>();
    
    W.

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


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

end of thread, other threads:[~2003-02-03 16:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-03 10:06 c++/9543: Syntax error on calling a template method from a template function petridis
2003-02-03 16:41 bangerth

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