public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "steven at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/29087] [4.1/4.2 Regression] More than 35000 switch cases crash cc1plus Date: Fri, 15 Sep 2006 21:23:00 -0000 [thread overview] Message-ID: <20060915212259.26817.qmail@sourceware.org> (raw) In-Reply-To: <bug-29087-12787@http.gcc.gnu.org/bugzilla/> ------- Comment #5 from steven at gcc dot gnu dot org 2006-09-15 21:22 ------- Test case: ------------------------------------- extern void bar (); extern void baz (); #define L1(x) \ case x##0: case x##1: case x##2: case x##3: \ case x##4: case x##5: case x##6: case x##7 #define L2(x) \ L1(x##0): L1(x##1): L1(x##2): L1(x##3): \ L1(x##4): L1(x##5): L1(x##6): L1(x##7) #define L3(x) \ L2(x##0): L2(x##1): L2(x##2): L2(x##3): \ L2(x##4): L2(x##5): L2(x##6): L2(x##7) #define L4(x) \ L3(x##0): L3(x##1): L3(x##2): L3(x##3): \ L3(x##4): L3(x##5): L3(x##6): L3(x##7) #define L5(x) \ L4(x##0): L4(x##1): L4(x##2): L4(x##3): \ L4(x##4): L4(x##5): L4(x##6): L4(x##7) #define CASES1 L5(00): L5(01): L5(02): L5(03) #define CASES2 L5(04): L5(05): L5(06): L5(07) void myfunction(unsigned int localChar) { switch (localChar) { CASES1: bar (); CASES2: baz (); break; }; return; }; ------------------------------------- -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29087
next prev parent reply other threads:[~2006-09-15 21:23 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-09-14 17:38 [Bug c++/29087] New: " Denis dot Excoffier at airbus dot com 2006-09-15 8:26 ` [Bug c++/29087] [4.1/4.2 Regression] " rguenth at gcc dot gnu dot org 2006-09-15 15:23 ` steven at gcc dot gnu dot org 2006-09-15 16:24 ` steven at gcc dot gnu dot org 2006-09-15 21:01 ` steven at gcc dot gnu dot org 2006-09-15 21:23 ` steven at gcc dot gnu dot org [this message] 2006-09-15 23:48 ` steven at gcc dot gnu dot org 2006-09-16 17:40 ` patchapp at dberlin dot org 2006-09-18 15:33 ` steven at gcc dot gnu dot org 2006-09-18 15:42 ` [Bug c++/29087] [4.1 " steven at gcc dot gnu dot org 2006-09-21 20:28 ` steven at gcc dot gnu dot org 2006-09-21 21:32 ` steven at gcc dot gnu dot org 2006-09-21 21:33 ` steven 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=20060915212259.26817.qmail@sourceware.org \ --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).