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]

GCC 2.96 bug: Internal error #122



This bug appears only when using g++ not gcc (I guess it's the
preprocessor),
caused by compiling an invalid if-statement (with an extra closing
brace).
Sorry if it's a known bug!

GCC: gcc version 2.96 20000731 (Red Hat Linux 7.0)
System: Linux 2.2.171, glibc 2.1.92

bash$ c++ a.c -o a
a.c: In function `int main ()':
a.c:8: parse error before `<='
a.c:10: Internal error #122.
a.c:10: Internal compiler error in finish_function, at ../gcc/cp/decl.c
:14422
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
bash$ cat a.c
#include <unistd.h>
#include <stdio.h>

int
main()
{
 char y[123];
 if (read(0,y,123)) <= 0)
  printf("Hello World!\n");
}



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