c++/9738: [mingw] Internal compiler error in rest_of_compilation, at toplev.c: 3491

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


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
r=9738

Redux:
--------------------------------------------
void __attribute__((dllimport)) Bar(void);

void Foo(void)
{
    Bar();
}

void Bar(void)
{
}
--------------------------------------------
pr9738.cpp: In function `void Bar()':
pr9738.cpp:11: Internal compiler error in rest_of_compilation, at
toplev.c:3491
Please submit a full bug report,

Confirmed on cygwin 3.2 and 3.3 20030401. GCC 2.95 works for this, so it's
(at least) a 3.2/3.3 regression.
I can't test with 3.4 (mainline still broken for cygwin).

Notice, this is similar c/10148 (even if this is c++), because:

- First a symbol is declared as dllimport
- Then it's used
- And finally it's defined.

Giovanni Bajo



More information about the Gcc-bugs mailing list