This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/6631: Miscompiled structure access
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 8 Oct 2002 10:49:21 -0700
- Subject: Re: optimization/6631: Miscompiled structure access
This is a regression from GCC 3.0 that was exposed by the following cp
patch:
2002-04-30 Mark Mitchell <mark@codesourcery.com>
ABI change, returning simple classes from functions.
* class.c (finish_struct_bits): Only mark TREE_ADDRESSABLE if
TYPE_HAS_TRIVIAL_INIT_REF is false or
TYPE_HAS_NONTRIVIAL_DESTRUCTOR is true.
The test passes with optimization on if it is altered by adding a
destructor or a copy constructor to class QSize, or by removing "const"
from "inline const QSize operator+".
I'm not planning to investigate this further, but hope this additional
information will be useful.
Janis