http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53262
Bug #: 53262 Summary: ICE compiling busybox 1.19.3 with gcc 4.7.0 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: ncahill_...@yahoo.com This code produces an internal compiler error with gcc 4.7.0. Build it with this command: gcc -O2 -o a a.c. This is gcc built from the original 4.7.0 source, x86 32-bit. **** a.c ****** typedef unsigned int size_t; enum { _ISalnum = 1 }; extern __const unsigned short int **__ctype_b_loc (void) __attribute__ ((__nothrow__)) __attribute__ ((__const)); void parse_config_file(char *map, size_t len) { char *end_3 = map + len - 3; char *end_7 = map + len - 7; char *p = map; char *q; int off; for (; p <= end_3; p++) { if (!(((*__ctype_b_loc ())[(int) ((*p))] & (unsigned short int) _ISalnum) || *p == '_')) continue; if (p < end_7 && p[6] == '_') { if (!memcmp(p, "CONFIG", 6)) goto conf7; } continue; conf7: off = 7; for (q = p; q < end_3+3; q++) {} if (q != p) { use_config(p, q-p); } } } ***** end a.c **** a.c: In function 'parse_config_file': a.c:28:10: internal compiler error: Segmentation fault Thank you. Neil Cahill.