[Bug c++/12623] New: Incoherent handling of member function template instansiations using template arguments
dfg at decode dot is
gcc-bugzilla@gcc.gnu.org
Wed Oct 15 14:16:00 GMT 2003
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>();
}
};
More information about the Gcc-bugs
mailing list