https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51304
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|UNCONFIRMED |RESOLVED --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- ICC Produces: <source>(3): internal error: bad pointer static unsigned long long const result = Ackermann<(m-1),Ackermann<m,(n-1)>::result>::result; ^ There is not much to fix here. The limit is there to give a reasonable limit so you don't run into problems like this.