This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/34029] [4.3 Regression] internal compiler error: verify_stmts failed
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Nov 2007 20:27:36 -0000
- Subject: [Bug tree-optimization/34029] [4.3 Regression] internal compiler error: verify_stmts failed
- References: <bug-34029-15329@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jakub at gcc dot gnu dot org 2007-11-08 20:27 -------
Slightly reduced:
static const char s[] = "ab.cd.efghijk";
int
foo (const char *x)
{
const char *a;
int b = 0;
a = __builtin_strchr (s, '.');
if (a == 0)
b = 1;
else if ((a = __builtin_strchr (a + 1, '.')) == 0)
b = 1;
else if (__builtin_strncmp (s, x, a - s))
b = 1;
else if (__builtin_strncmp (a + 1, x + (a - s + 1), 4) < 0)
b = 1;
if (b)
return 4;
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34029