Simple code creates internal error

Lee, Justin justin_lee@ud.com
Tue Oct 17 12:20:00 GMT 2000


I made a typo and got this error with gcc.  I've never reported a bug,
but I tried to follow all conventions, so if this is extraneous, I
apologize.

--Justin

520 salieri:~/tmp> gcc -c internal_errror.C
internal_errror.C: In function `int makes_internal_error ()':
internal_errror.C:6: parse error before `1'
internal_errror.C:9: Internal error #122.
internal_errror.C:9: 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.
521 salieri:~/tmp> gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)
522 salieri:~/tmp> 

# 1 "internal_errror.C"
int foo(char *str, int x) {
    return 0;
}

int makes_internal_error() {
    if (1) foo("blah" 1);

    return 0;
}



More information about the Gcc-bugs mailing list