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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 40435
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40435&action=edit
gcc7-pr78890.patch

Untested fix.  Apparently what changed in C++11 is that it allows static data
members in unions and those clearly can have reference type, so that is the
reason why the restriction has been removed and nothing added the restriction
that non-static data members still may not have reference type.

Reply via email to