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

2019-03-13 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85558

Paolo Carlini  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |9.0

--- Comment #5 from Paolo Carlini  ---
Fixed in trunk.

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

2019-03-13 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85558

--- Comment #4 from paolo at gcc dot gnu.org  ---
Author: paolo
Date: Wed Mar 13 10:32:29 2019
New Revision: 269644

URL: https://gcc.gnu.org/viewcvs?rev=269644=gcc=rev
Log:
2019-03-13  Paolo Carlini  

PR c++/85558
* g++.dg/other/friend16.C: New.
* g++.dg/other/friend17.C: Likewise.

Added:
trunk/gcc/testsuite/g++.dg/other/friend16.C
trunk/gcc/testsuite/g++.dg/other/friend17.C
Modified:
trunk/gcc/testsuite/ChangeLog

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

2018-07-19 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85558

Paolo Carlini  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code

--- Comment #3 from Paolo Carlini  ---
We ICE also for the following which seems valid to me and doesn't have anything
to do with PR59480:

template 
struct triggerBug {
friend void doInitUser(bool = triggerBug::doInit) {}
static bool doInit;
};

template 
bool triggerBug::doInit = true;

triggerBug bug;

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

2018-05-30 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85558

--- Comment #2 from Paolo Carlini  ---
See PR59480.

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

2018-04-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85558

Richard Biener  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  ---
Confirmed.  clang complains:

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