Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs Date: Fri, 17 Dec 1999 10:50:00 -0600 (CST) From: Mumit Khan To: Joost Kraaijeveld cc: "'cygwin AT sourceware DOT cygnus DOT com'" Subject: RE: Internal compiler error in `rest_of_compilation', at toplev.c :441 5 In-Reply-To: <1F8B49DD9100D31195FC00A0C94989FE0D71@obelix> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 AT sourceware DOT cygnus DOT com