c/10148: [MingW/CygWin] Compiler dumps core
Giovanni Bajo
giovannibajo@libero.it
Sun Apr 6 21:53:00 GMT 2003
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
r=10148
Reduced snippet:
--------------------------------------------
struct Foo
{
int a;
};
__attribute__((dllimport)) struct Foo f;
void Bar(void)
{
void* dummy = &f;
}
struct Foo f;
void* dummy = &f;
--------------------------------------------
pr10148.c:16: internal compiler error: Segmentation fault
Confirmed under cygwin with 3.2 and 3.3 20030401.
2.95 can compile the above correctly so it's (at least) a 3.2/3.3
regression.
I can't test with 3.4 (mainline broken for cygwin)
Giovanni
More information about the Gcc-bugs
mailing list