re PR c++/84502 (Argument corruption when passing empty templated struct)
authorJakub Jelinek <jakub@redhat.com>
Thu, 22 Feb 2018 08:29:56 +0000 (09:29 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 22 Feb 2018 08:29:56 +0000 (09:29 +0100)
commitd3d4a52a70f2021b3d84cb35f66ba88190e6b5d3
treeef85c92dac9a135c13fd324d5a1fee8d324e20f0
parentc5679c37aad3775ecbb41b1a191514b13bf73f77
re PR c++/84502 (Argument corruption when passing empty templated struct)

PR target/84502
* stor-layout.c (finalize_type_size): Propagate TYPE_EMPTY_P flag
to all type variants.

* g++.dg/torture/pr84502.C: New test.

From-SVN: r257892
gcc/ChangeLog
gcc/stor-layout.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr84502.C [new file with mode: 0644]