From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7440 invoked by alias); 6 Apr 2003 22:16:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7425 invoked by uid 71); 6 Apr 2003 22:16:01 -0000 Date: Sun, 06 Apr 2003 22:16:00 -0000 Message-ID: <20030406221601.7424.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Giovanni Bajo" Subject: Re: c++/9738: [mingw] Internal compiler error in rest_of_compilation, at toplev.c: 3491 Reply-To: "Giovanni Bajo" X-SW-Source: 2003-04/txt/msg00210.txt.bz2 List-Id: The following reply was made to PR c++/9738; it has been noted by GNATS. From: "Giovanni Bajo" To: , , , , Cc: "Wolfgang Bangerth" Subject: Re: c++/9738: [mingw] Internal compiler error in rest_of_compilation, at toplev.c: 3491 Date: Mon, 7 Apr 2003 00:09:44 +0200 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