Internal error in Mingw32

Mumit Khan khan@xraylith.wisc.EDU
Tue Aug 31 22:45:00 GMT 1999


Sven Sandberg <ssven.geo@yahoo.com> writes:
> 
> Mingw32 produces an internal error with the following code:
> 
> --- foo.cc -------------
> 
> typedef struct
> {
> 	int x;
> } foo;
> extern __declspec(dllimport) foo dllvariable;
> foo *bar(void)
> {
> 	return &dllvariable;
> }
> 
> --- EOF(foo.cc) --------
> 
> I compile with the following command line:
> 
> 	gcc -o foo.o -c foo.cc
> 
> But this seems to happen independently of command line switches. The
> compiler
> gives this message:
> 
> 	foo.cc:4: Internal compiler error.
> 	foo.cc:4: Please submit a full bug report to
> `egcs-bugs@egcs.cygnus.com'.
> 	foo.cc:4: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for
> details.


Thanks for your bug report. This problem is fixed in the gcc-2.95, the
latest release.

> Another similar problem that I've been having recently is that I get
> errors
> when assigning from a struct in a dll to a local struct, eg
> 
> --- my_file.c ----------
> 
> typedef struct
> {
> 	int x;
> } foo;
> extern __declspec(dllimport) foo dllvariable;
> void bar(void)
> {
> 	foo x;
> 	x = dllvariable;
> }
> 
> --- EOF(my_file.c) -----

Also fixed in gcc-2.95.

See http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ for gcc-2.95
binary release and source patches used in this release.

Regards,
Mumit



More information about the Gcc-bugs mailing list