re PR c++/86763 (Wrong code comparing member of copy of a 237 byte object with nontri...
authorRichard Biener <rguenther@suse.de>
Thu, 2 Aug 2018 14:25:57 +0000 (14:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 2 Aug 2018 14:25:57 +0000 (14:25 +0000)
commitf70cb6f5b0ee51223319ec524994e59d356fb862
treee9eae87de63873763871a755185272deb1e12bde
parent7c9f1147b866b3fec70fdce60bc37f1f4d41b330
re PR c++/86763 (Wrong code comparing member of copy of a 237 byte object with nontrivial default constructor on x86-64 arch)

2018-08-02  Richard Biener  <rguenther@suse.de>

PR c++/86763
* class.c (layout_class_type): Copy TYPE_TYPELESS_STORAGE
to the CLASSTYPE_AS_BASE.

* g++.dg/torture/pr86763.C: New testcase.

From-SVN: r263261
gcc/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr86763.C [new file with mode: 0644]