This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/86763] [7 Regression] Wrong code comparing member of copy of a 237 byte object with nontrivial default constructor on x86-64 arch
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 17 Aug 2018 14:17:42 +0000
- Subject: [Bug c++/86763] [7 Regression] Wrong code comparing member of copy of a 237 byte object with nontrivial default constructor on x86-64 arch
- Auto-submitted: auto-generated
- References: <bug-86763-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86763
--- Comment #14 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri Aug 17 14:17:10 2018
New Revision: 263621
URL: https://gcc.gnu.org/viewcvs?rev=263621&root=gcc&view=rev
Log:
2018-08-17 Richard Biener <rguenther@suse.de>
Backport from mainline
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.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/torture/pr86763.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/class.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog