This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/41762] internal compiler error when compiling xorg-server



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]