[Bug c++/83040] __attribute__((always_inline)) causes internal_compiler_error (segmentation fault) (with recursive meta-template programming function)

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 20 09:41:00 GMT 2017


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.


More information about the Gcc-bugs mailing list