]> git.ipfire.org Git - thirdparty/gcc.git/commit
CWG 2096 - constraints on literal unions.
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 May 2019 20:42:52 +0000 (20:42 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 May 2019 20:42:52 +0000 (20:42 +0000)
commit4218eec06ea7e9445e00778693f5c9cfa9e2bb42
tree6628e2308268901e75cec16201608f6f252a44a1
parent3287af73c5ae3700c4bd93eebaf3d15d76ca8148
CWG 2096 - constraints on literal unions.
* class.c (check_field_decls): Initialize booleans directly.  A union
is literal if at least one of its non-static data members is of
non-volatile literal type.

* g++.dg/cpp0x/literal-type1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271267 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/literal-type1.C [new file with mode: 0644]