This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/38732] [4.4 Regression] Openoffice.org segfaults with runtime libs built from GCC trunk
- From: "sebastian dot redl at getdesigned dot at" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2009 21:14:37 -0000
- Subject: [Bug libstdc++/38732] [4.4 Regression] Openoffice.org segfaults with runtime libs built from GCC trunk
- References: <bug-38732-11764@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #17 from sebastian dot redl at getdesigned dot at 2009-01-07 21:14 -------
I have no idea how a prepended member can change the negative offset of the
other struct members. If I did, the bug wouldn't be there.
Is wrapping the struct in another struct the best way to ensure that the layout
stays the same? If so, the patch looks good to me.
The OOo.org guys should perhaps add a note for future reference, that if they
ever use std::current_exception(), they *will* have to change the code to cope
with dependent exceptions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38732