This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30822] wrong choice of overloaded template functions in recursive call
- From: "Zarathustra at gentlemansclub dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Feb 2007 16:35:34 -0000
- Subject: [Bug c++/30822] wrong choice of overloaded template functions in recursive call
- References: <bug-30822-14112@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from Zarathustra at gentlemansclub dot de 2007-02-16 16:35 -------
I know the rules for template function name lookup are complicated, and I do
not claim that I understand them completely. But I am pretty sure that the
order of the definitions should not matter. There is a partial ordering of
template functions to decide which function is used. This ordering depends on
which function is "more specialized" than the other, but not the sequence of
the definitions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30822