https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98524
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-08-17 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes GCC does not check the argument types or return type at all of the function pointer type. template<typename T> void (*TF)(int); template int (*TF<int>)(int);