B20 egcs1.1 internal compiler error - minor problem

Kenneth_Basye@Dragonsys.com Kenneth_Basye@Dragonsys.com
Wed May 3 12:44:00 GMT 2000


The following code causes an internal compiler error:

class
__attribute__((dllimport))
Problem
{
public:
  void f();
};

void Problem::f() {}

Of course, this is a pretty silly thing to be doing anyway.  Curiously, if f()
is defined within the class scope, the error goes away.
This came up in porting some VC++ DLL code to Cygwin without paying enough
attention to my makefile.

Thanks to all the Cygwin folks for a great system!
   Ken B.


Here's the verbose command line; the error is at the end:

[~/work/temp]-$ g++ -c -v scorer.cpp
Reading specs from d:\cygwin\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\
egcs-2.91.57\specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
 d:\cygwin\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\cpp.e
xe -lang-c++ -v -iprefix d:\cygwin\CYGWIN~1\H-I586~1\bin\..\lib/gcc-lib/i586-cyg
win32\egcs-2.91.57\ -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINO
R__=91 -Di386 -D_WIN32 -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__(
(__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute_
_((x)) -D__i386__ -D_WIN32 -D__WINNT__ -D_X86_=1 -D__STDC__=1 -D__stdcall=__attr
ibute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__at
tribute__((x)) -D__i386 -D__WINNT -Asystem(winnt) -Acpu(i386) -Amachine(i386) -D
__EXCEPTIONS -remap -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di58
6 -Dpentium -D__i586 -D__i586__ -D__pentium -D__pentium__ -D__CYGWIN32__ -D__CYG
WIN__ scorer.cpp C:\TEMP\cc3i3Jeb.ii
GNU CPP version egcs-2.91.57 19980901 (egcs-1.1 release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 d:\cygwin\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..
\..\..\..\include\g++
 d:\cygwin\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..
\..\..\..\include
 d:\cygwin\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..
\..\..\i586-cygwin32\include
 d:\cygwin\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\inclu
de
End of search list.
 d:\cygwin\CYGWIN~1\H-I586~1\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\cc1pl
us.exe C:\TEMP\cc3i3Jeb.ii -quiet -dumpbase scorer.cc -version -o C:\TEMP\cceD7W
Kn.s
GNU C++ version egcs-2.91.57 19980901 (egcs-1.1 release) (i586-cygwin32) compile
d by GNU C version egcs-2.91.57 19980901 (egcs-1.1 release).
/home/noer/src/b20/comp-tools/devo/gcc/toplev.c:3852: Internal compiler error in
 function rest_of_compilation



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list