[Bug c++/69323] [4.9/5/6 Regression] Segmentation fault when instantiating class template with inner class which declares itself as a friend

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 24 20:57:00 GMT 2016


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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |ice-on-invalid-code
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
   Target Milestone|4.9.4                       |5.4

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
The testcase is ill-formed.  To make it valid, you need to change Outer:: to
Outer<VAL>::.  That also caused GCC to ICE, but I've now checked in a fix.  For
GCC 6, we will also properly diagnose the ill-formed testcase.


More information about the Gcc-bugs mailing list