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 bootstrap/36108] [4.4 Regression]: revision 134865 breaks gcc bootstrap



------- Comment #2 from hjl dot tools at gmail dot com  2008-05-02 12:48 -------
A simple testcase:

bash-3.2$ cat x.c
int foo [10];

int
bar (int i)
{
  if (8 == 8)
    return foo [1];
  else
   return foo [-1];
}
bash-3.2$  ./xgcc -B./ -O2 x.c -c -Wall -Werror
cc1: warnings being treated as errors
x.c: In function ?bar?:
x.c:9: error: array subscript is negative
bash-3.2$ 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36108


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