This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78890] [5/6/7 Regression] ICE on invalid reference type in union
- From: "rs2740 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 02 Jan 2017 09:55:21 +0000
- Subject: [Bug c++/78890] [5/6/7 Regression] ICE on invalid reference type in union
- Auto-submitted: auto-generated
- References: <bug-78890-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78890
--- Comment #5 from TC <rs2740 at gmail dot com> ---
(In reply to Jakub Jelinek from comment #4)
> 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.
...I quoted the part of the standard that says this is ill-formed in comment
#3?