[Bug c++/105779] [12/13 Regression] static function with auto return type not being resolved correctly
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 31 05:01:11 GMT 2022
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);
More information about the Gcc-bugs
mailing list