From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27099 invoked by alias); 2 Dec 2002 01:16:02 -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 27067 invoked by uid 71); 2 Dec 2002 01:16:01 -0000 Resent-Date: 2 Dec 2002 01:16:01 -0000 Resent-Message-ID: <20021202011601.27066.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, c00chm@cs.umu.se Received: (qmail 25297 invoked from network); 2 Dec 2002 01:09:00 -0000 Received: from unknown (HELO martin) (130.239.143.167) by sources.redhat.com with SMTP; 2 Dec 2002 01:09:00 -0000 Received: from saturn ([192.168.0.2]) by martin with smtp (Exim 3.36 #1 (Debian)) id 18If52-0001XF-00; Mon, 02 Dec 2002 02:09:00 +0100 Received: by saturn (sSMTP sendmail emulation); Mon, 2 Dec 2002 02:10:05 +0100 Message-Id: Date: Sun, 01 Dec 2002 17:16:00 -0000 From: c00chm@cs.umu.se To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org X-Send-Pr-Version: 3.113 Subject: c/8777: Internal error when mixing inline, extern and static. X-SW-Source: 2002-12/txt/msg00045.txt.bz2 List-Id: >Number: 8777 >Category: c >Synopsis: Internal error when mixing inline, extern and static. >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Sun Dec 01 17:16:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Christian Haggstrom >Release: 3.2.1 (Debian testing/unstable) >Organization: >Environment: System: Linux saturn 2.4.19 #9 Thu Nov 7 16:53:49 CET 2002 i586 unknown unknown GNU/Linux Architecture: i586 host: i386-pc-linux-gnu build: i386-pc-linux-gnu target: i386-pc-linux-gnu configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux >Description: gcc-3.2 segfaults when I try to compile this code with optimization enabled >How-To-Repeat: $ cat > test.c inline int a(int x) { return 0; } extern inline void b(void) { } static void b(void) { a(0); } $ gcc-3.2 -O test.c test.c:3: warning: static declaration for `b' follows non-static test.c: In function `b': test.c:3: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >Fix: The problem can be solved by correcting the code. However, gcc should not crash due to bad input. I have not tried to compile it with the latest snapshot of gcc. >Release-Note: >Audit-Trail: >Unformatted: