public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12623] New: Incoherent handling of member function template instansiations using template arguments
@ 2003-10-15 14:16 dfg at decode dot is
2003-10-15 14:51 ` [Bug c++/12623] " dfg at decode dot is
0 siblings, 1 reply; 2+ messages in thread
From: dfg at decode dot is @ 2003-10-15 14:16 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12623
Summary: Incoherent handling of member function template
instansiations using template arguments
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dfg at decode dot is
CC: gcc-bugs at gcc dot gnu dot org
I get a parse error in B::i() in the following code, which is inconsistent with
not getting a parse error in B::g().
class A {
public:
template<class T>
void f() {}
};
class B {
public:
void g() {
A a;
a.f<double>();
}
template<class T>
void h() {
A a;
a.template f<double>();
}
template<class T>
void i() {
A a;
a.f<double>();
}
};
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-15 14:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-15 14:16 [Bug c++/12623] New: Incoherent handling of member function template instansiations using template arguments dfg at decode dot is
2003-10-15 14:51 ` [Bug c++/12623] " dfg at decode dot is
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).