This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Probably a bug
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Probably a bug
- From: Maksim Likharev <maxl at uts dot com>
- Date: Tue, 29 Aug 2000 17:02:29 -0500
- Organization: Universal Tecnical Systems, Inc.
template<class _T> class Template {
public:
virtual void foo();
};
template<class _T> void Template<_T>::foo() {
}
template<> class Template<const char*> {
public:
virtual void foo();
};
template<> void Template<const char*>::foo() {
}
---------------------------------------------
bash-2.02$ c++.exe test_cpp.cpp -o test_cpp.exe
test_cpp.cpp:27: template-id `foo<>' for `Template<const char *>::foo()'
does not match any template declaration
test_cpp.cpp:27: syntax error before `{'
---------------------------------------------
bash-2.02$ c++ -v
Reading specs from
/dev/drv_e/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-c
ygwin32/2.95.2/specs
gcc version 2.95.2 19991024 (release)