------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-18 17:28 ------- (In reply to comment #0) > The C++ standard clause 14.6.3 states that names should be looked up from the > point they are used. I.e. functions defined after that point are not visible. > This is true for regular functions, but GCC does not get this right for > template functions.
No you missed something but I don't have the standard in front of me. 14.6.3 is talking about something different. Anyways this is unqualified function call that is dependent on a template arguments. I think 14.6.3 is really talking about what PR 2922 is about and not this one. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29131