------- Comment #2 from pinskia at gcc dot gnu dot org 2008-02-25 19:49 ------- GCC is correct, f is a not a dependent name so it has to be looked up at parsing time and not at instaintation time.
>or, if this is in fact not legal, perhaps a more specific diagnostic message This is the best error message you can give really as that would cost extra compile time if not found. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35370