This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: member function template overloading bug
- From: Dara Hazeghi <dhazeghi at yahoo dot com>
- To: Robert Ramey <ramey at rrsd dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 Aug 2003 10:41:20 -0700 (PDT)
- Subject: Re: member function template overloading bug
Hi,
I seriously doubt that this is a bug in g++.
Using the edg front-end, your code produces the
following error in strict mode:
foo.cpp(12): error #842: specializing function
"test<T>::test_function(int) [with T=char]" without
"template<>" syntax is nonstandard
inline void test<char>::test_function(int i){}
Cheers,
Dara
P.S. Just a suggestion, but putting copyright
disclaimers, like the one you include, on (potential)
compiler bug testcases isn't very helpful. Had this
been a bug, your notice would have precluded us from
including the testcase as-is, which would have meant
more work for the person who fixed it.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com