[Bug middle-end/41762] internal compiler error when compiling xorg-server
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Oct 22 15:27:00 GMT 2009
------- Comment #4 from jakub at gcc dot gnu dot org 2009-10-22 15:27 -------
Slightly more reduced testcase:
extern __SIZE_TYPE__ strlen (const char *);
extern int f1 (void *);
extern char *f2 (void);
extern void f3 (int, int);
static char *a;
char *b, *c, *d, *e;
void
foo (void)
{
int f, g, h;
f = (a ? strlen (a) : strlen ("abcde"));
f += (b ? strlen (b) : 0);
f += (c ? strlen (c) : 0);
f += (d ? strlen (d) : 0);
f += (e ? strlen (e) : 0);
h = f1 (strlen);
g = strlen (a);
f3 (g, f);
}
void
bar (void)
{
a = f2 ();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41762
More information about the Gcc-bugs
mailing list