Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: gcc ICE
On Fri, Apr 03, 2020 at 09:29:41PM +0200, Thomas Klausner wrote:
> On Sat, Apr 04, 2020 at 05:55:01AM +1100, Matthew Green wrote:
> > Thomas Klausner writes:
> > > Here's a version with less warnings:
> > >
> > > int a;
> > > struct b {
> > > char c;
> > > void *d;
> > > };
> > > struct b e() {
> > > struct b f[] = {{}, "", f, a};
> > > }
> > >
> > > Don't forget to use -fstack-check.
> >
> > FWIW, this fails in both unpatched GCC 8.3.0 and 8.4.0 for
> > netbsd/amd64. ... and same with plain 9.3.0.
> >
> > if you haven't already, i recommend filing an upstream bug.
>
> Thanks for testing -- I just did that:
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94479
Upstream already came up with a patch. I've applied it to our in-tree
copy of gcc, so this problem is now gone, yay :)
Thomas
Home |
Main Index |
Thread Index |
Old Index