[Bug c++/84349] [6/7/8 Regression] ICE with auto in function cast
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 13 00:37:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84349
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-02-13
CC| |msebor at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed. The ICE originated with r202540 in GCC 4.9.0:
r202540 | abutcher | 2013-09-12 17:04:52 -0400 (Thu, 12 Sep 2013) | 31 lines
Support using 'auto' in a function parameter list to introduce an implicit
template parameter.
Prior to that, GCC would error out with:
t.C:2:19: error: parameter declared ‘auto’
int i = (*(int(*)(auto)) p)(0);
^
t.C:2:30: error: too many arguments to function
int i = (*(int(*)(auto)) p)(0);
^
More information about the Gcc-bugs
mailing list