This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/34048] [4.3 Regression]: Revision 130040 miscompiles 450.soplex
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Nov 2007 12:19:46 -0000
- Subject: [Bug tree-optimization/34048] [4.3 Regression]: Revision 130040 miscompiles 450.soplex
- References: <bug-34048-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from rguenth at gcc dot gnu dot org 2007-11-11 12:19 -------
Well, gcc is able to optimize the two-element array case the same. Also you
still do default construction with the placement new (if Element has a default
constructor). Maybe Element is POD, in which case there is no default
construction for the array case either (I didn't really investigate but only
speculated about the reason for the strange code).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34048