[Bug c++/19434] New: this->baseMemberTemplate<T>() in derived doesnt compile
johill at lanl dot gov
gcc-bugzilla@gcc.gnu.org
Fri Jan 14 00:38:00 GMT 2005
The attached snippet does not compile with the attached compiler version.
class base {
protected:
template <class P,class T> P fred ( T & ) {return 0;};
};
template <class T>
class derived : public base {
public:
void jane () {T t; this->fred<int>(t);}
};
main ()
{
derived<double> d;
d.jane ();
}
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)
--
Summary: this->baseMemberTemplate<T>() in derived doesnt compile
Product: gcc
Version: 3.2.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: johill at lanl dot gov
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-redhat-linux
GCC host triplet: i386-redhat-linux
GCC target triplet: i386-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19434
More information about the Gcc-bugs
mailing list