[Bug c++/38850] Cannot find inline friend function in template class when called from within a template function
nvachhar at google dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 14 21:30:00 GMT 2009
------- Comment #3 from nvachhar at google dot com 2009-01-14 21:30 -------
(In reply to comment #2)
> I think this code is invalid as the call to Max is not going to be dependent as
> the arguments are not dependent and can be looked up at the time the function
> is defined.
>
I don't think I follow. While the arguments to Max are not dependent, other
code inside of foo could be dependent on T (in the example, no such code
exists). Shouldn't the fact that the function can be looked up at definition
time make this code legal?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38850
More information about the Gcc-bugs
mailing list