This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: Internal compiler error in `rest_of_compilation', at toplev.c :441 5
- To: Joost Kraaijeveld <JKraaijeveld at Askesis dot nl>
- Subject: RE: Internal compiler error in `rest_of_compilation', at toplev.c :441 5
- From: Mumit Khan <khan at NanoTech dot Wisc dot EDU>
- Date: Fri, 17 Dec 1999 10:50:00 -0600 (CST)
- cc: "'cygwin at sourceware dot cygnus dot com'" <cygwin at sourceware dot cygnus dot com>
On Fri, 17 Dec 1999, Joost Kraaijeveld wrote:
> I narrowed it down a bit. It seems that compiling an executable with
> __declspec (dllimport) defines for a class is not allowed. See the Bug
> and NoBug version that are attached
>
Out-of-line definitions for an imported class is not allowed because it
makes no sense. However, it's a bug in gcc since it should issue an error
instead of crashing! I'm working on that.
MSVC will issue a warning and turn the linkage into "dllexport" when it
sees the definition, which is bogus. It's an error, and ignoring that
can cause hard-to-track-down errors in your code.
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com