https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105779
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Summary|[12 Regression] |[12/13 Regression] static
|internal_error on passing a |function with auto return
|pointer to static function |type not being resolved
|to another function |correctly
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is a even more reduced testcase which is rejected rather than crashes. It
is also is rejected on the trunk:
template<int>
struct struct1
{
static auto apply()
{
return 1;
}
};
int method(int(*f)());
int t = method(struct1<1>::apply);