public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: c00chm@cs.umu.se To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org Subject: c/8777: Internal error when mixing inline, extern and static. Date: Sun, 01 Dec 2002 17:16:00 -0000 [thread overview] Message-ID: <E18If52-0001XF-00@martin> (raw) >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 <URL:http://www.gnu.org/software/gcc/bugs.html> 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:
next reply other threads:[~2002-12-02 1:16 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-12-01 17:16 c00chm [this message] 2002-12-02 1:34 ebotcazou
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=E18If52-0001XF-00@martin \ --to=c00chm@cs.umu.se \ --cc=debian-gcc@lists.debian.org \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).