[Bug c++/85558] ICE in make_rtl_for_nonlocal_decl when using static member of template class

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 30 07:59:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85558

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-04-30
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  clang complains:

t.C:4:17: error: friend declaration specifying a default argument must be a
      definition
    friend void doInitUser(bool = triggerBug::doInit);
                ^


More information about the Gcc-bugs mailing list