[Bug c++/11752] partial ordering overloaded function templates
lerdsuwa at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 5 16:29: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=11752
lerdsuwa at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2003-08-05 16:29 -------
Not a bug. According to the standard, partial ordering is defined
based on template argument deduction. Since the parameter 'size'
is not used anywhere in function parameter or return type, it's
not deducable and partial ordering fails. So both are treated as
equal, none is more specialized than the other.
More information about the Gcc-bugs
mailing list