This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23885] incorrect template two-stage name-lookup
- From: "andrew dot stubbs at st dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 May 2007 09:49:03 -0000
- Subject: [Bug c++/23885] incorrect template two-stage name-lookup
- References: <bug-23885-11356@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from andrew dot stubbs at st dot com 2007-05-31 09:49 -------
See here: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#197
It would appear that only koenig lookup is done for functions defined after the
template declaration. As the Intel statement says, koenig lookup does not apply
to fundamental types.
Koenig lookup is described in clause 3.4.2 "Argument dependent name lookup".
It is clause 14.6.4 "Dependent name resolution" that limits the lookup to
Koenig only.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23885