c/8859: [CygWin] internal error: Segmentation fault
Giovanni Bajo
giovannibajo@libero.it
Sun Apr 6 22:36:00 GMT 2003
The following reply was made to PR c/8859; it has been noted by GNATS.
From: "Giovanni Bajo" <giovannibajo@libero.it>
To: <mlt@bredband.net>,
<gcc-gnats@gcc.gnu.org>,
<gcc-bugs@gcc.gnu.org>,
<nobody@gcc.gnu.org>,
<gcc-prs@gcc.gnu.org>
Cc: "Wolfgang Bangerth" <bangerth@ices.utexas.edu>
Subject: Re: c/8859: [CygWin] internal error: Segmentation fault
Date: Mon, 7 Apr 2003 00:31:24 +0200
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
r=8859
Redux:
-----------------------------------------------
struct Foo
{
int a;
};
__attribute__((__dllimport__)) struct Foo f;
void* b = &f;
-----------------------------------------------
ICE on 3.2:
pr8859.c:9: internal error: Segmentation fault
Please submit a full bug report,
Error on 2.95 and 3.3:
pr8859.c:9: error: initializer element is not constant
I would flag this as rejects-legal, since the code looks ok to me (even if I
don't know exactly how attributes are supposed to work). It's not a
regression, though. There was a regression in 3.2 (ICE) but it's fixed in
3.3
Giovanni Bajo
More information about the Gcc-prs
mailing list