This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32182] -fstrict-aliasing optimizations cause constructor not to run for object causing segfault
- From: "epperly2 at llnl dot gov" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2007 22:14:40 -0000
- Subject: [Bug c++/32182] -fstrict-aliasing optimizations cause constructor not to run for object causing segfault
- References: <bug-32182-10468@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from epperly2 at llnl dot gov 2007-06-01 22:14 -------
I've simplified the sample case that demonstrates the problem, and it has *no*
casting in C++. In C, it casts the result of malloc to the appropriate pointer
type.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32182