http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50471
--- Comment #6 from Jonathan Wakely 2011-09-21
10:22:48 UTC ---
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#448
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50471
--- Comment #5 from Jonathan Wakely 2011-09-21
10:19:21 UTC ---
The name lookup is delayed until instantiation, however [temp.dep.candidate]
says that the qualified lookup in g1 only finds declarations visible at the
point of definition of g1:
F
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50471
--- Comment #4 from Zoltan Glozik
2011-09-21 06:43:29 UTC ---
(In reply to comment #3)
> NS::f(t);
> Binds at the point at definition because it is qualified.
> f(t);
> Does not bind and then does argument dependent lookup (ADL) at instan
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50471
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50471
--- Comment #2 from Zoltan Glozik
2011-09-21 05:43:44 UTC ---
Comment on attachment 25330
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25330
bug
#include
namespace NS {
template
struct A {
T t;
};
template
void f(T &t)
{
std
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50471
--- Comment #1 from Zoltan Glozik
2011-09-21 05:41:57 UTC ---
Created attachment 25330
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25330
bug