https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83040
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2017-11-20 Ever confirmed|0 |1 Known to fail| |7.2.1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- "don't do this"? Or use constexpr? That you need to bump the template-depth should already tell you you're doing sth that's bad. Anyway, confirmed with GCC 7.2, note that GCC 5 is no longer maintained.