http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60965
Harald van Dijk <harald at gigawatt dot nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |harald at gigawatt dot nl
--- Comment #10 from Harald van Dijk <harald at gigawatt dot nl> ---
(In reply to Jan Hubicka from comment #4)
> Mine, probably 4.9 regression, too.
It is, and Jonathan Wakely's earlier reduction exposes it on 4.9 too.
(In reply to Jan Hubicka from comment #6)
> Can you, please, double check that it fixes the Java issues?
With 4.9.0, for me, IcedTea reliably hangs during the build process. I hadn't
investigated the problem at all, but with 4.9.0 plus your patch, it builds
successfully.
What I had looked into was a segmentation fault in Qt
(https://bugreports.qt-project.org/browse/QTBUG-38733) and Chromium, both using
WebKit, also because of this. Chromium is still building, but for Qt, I can
confirm it is also fixed by your patch.
(In reply to Jason Merrill from comment #9)
> As far as I know people always use char arrays for placement new anyway; at
> least all the examples I've ever seen do.
Or a structure containing (possibly indirectly) a character array as its first
member, such as aligned_storage. But as long as a pointer to such a structure
is indistinguishable from a pointer to the contained character array, that
should not be a problem.