http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57452
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57452
--- Comment #3 from Balaji V. Iyer ---
Hi H. J.,
Yes, there is a bug in this test case. I have fixed it and it was approved
for trunk and is already checked in.
To answer your 2nd question, the compiler cannot check for out of bounds
erro
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57452
--- Comment #2 from H.J. Lu ---
We have
int main2 (int argc, char **argv);
int main(int argc, char **argv)
{
int x = 0;
if (argc == 1)
{
const char *array[] = {"a.out", "10", "15"};
x = main2 (3, (char **) array);
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57452
--- Comment #1 from Andreas Schwab ---
Also fails on ia64 for the same reason.