https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77304
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Fixed now: 77304.C: In instantiation of ‘static void* A<T>::g() [with T = int]’: 77304.C:17:21: required from here 77304.C:9:12: error: invalid use of member function ‘template<S <anonymous> > void A<T>::f() [with S <anonymous> = <enumerator>; T = int]’ (did you forget the ‘()’ ?) 9 | return (void *) f < a >; | ^~~~~~~~~~~~~~~~ | () I'll add the test.