This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/78890] [5/6/7 Regression] ICE on invalid reference type in union


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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]