------- 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