union1.C
73 Bytes
-
re PR c++/78890 (ICE on invalid reference type in union) · 962c5679
PR c++/78890 * class.c (check_field_decls): Diagnose REFERENCE_TYPE fields in unions even for C++11 and later. * g++.dg/init/ref14.C: Expect error even in C++11 and later. * g++.dg/init/union1.C: Likewise. * g++.dg/cpp0x/union6.C: Expect errors. * g++.dg/cpp0x/union8.C: New test. * g++.dg/cpp0x/pr78890-1.C: New test. * g++.dg/cpp0x/pr78890-2.C: New test. From-SVN: r244112
Jakub Jelinek committed