public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "fn_x at hotmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/18493] New: gcc doesn't like switch blocks without case/default labels Date: Mon, 15 Nov 2004 03:22:00 -0000 [thread overview] Message-ID: <20041115032230.18493.fn_x@hotmail.com> (raw) Hi, int main() { goto bug; switch(0) { bug: return 0; } } This program doesn't compile with gcc 3.4.3. It gives this error message: /tmp/ccetXBGt.o(.text+0x1d): In function `main': : undefined reference to `.L2' However, this: int main() { goto bug; switch(0) { bug: return 0; default: ; } } does compile without a problem. gcc 2.95.3 and 3.3.4 compile both examples. I searched to see if anyone else reported this, and only found bug #17078. I don't know if it's related or just similar. Sorry if I overlooked another bug report. -- Summary: gcc doesn't like switch blocks without case/default labels Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fn_x at hotmail dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18493
next reply other threads:[~2004-11-15 3:22 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-11-15 3:22 fn_x at hotmail dot com [this message] 2004-11-15 3:30 ` [Bug middle-end/18493] [3.4 Regression] " pinskia at gcc dot gnu dot org 2004-11-27 18:40 ` roger at eyesopen dot com 2004-12-14 9:02 ` ebotcazou at gcc dot gnu dot org 2004-12-16 14:43 ` cvs-commit at gcc dot gnu dot org 2004-12-16 16:25 ` pinskia at gcc dot gnu dot org 2004-12-16 17:52 ` cvs-commit at gcc dot gnu dot org
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=20041115032230.18493.fn_x@hotmail.com \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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).