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]

Simple code creates internal error


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


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