[Bug c++/78890] [5/6/7 Regression] ICE on invalid reference type in union
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 2 09:37:00 GMT 2017
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.
More information about the Gcc-bugs
mailing list