This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26267] template function implicity instatiated
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Feb 2006 20:24:07 -0000
- Subject: [Bug c++/26267] template function implicity instatiated
- References: <bug-26267-12178@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-02-13 20:24 -------
This has nothing to do with implicity instatiating the template function.
NOT_HERE is not dependent so it is looked up as the template function is parsed
and not at instatiation time.
This is not a bug and this behavior is required by the standard by the
non-dependent namelookup.
You were looking into the wrong section (I don't have the standard in front of
me but IIRC the section is named template lookup rules).
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26267