c/8859: [CygWin] internal error: Segmentation fault

Giovanni Bajo giovannibajo@libero.it
Sun Apr 6 22:31:00 GMT 2003


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-bugs mailing list