This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Simple code creates internal error
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: Simple code creates internal error
- From: "Lee, Justin" <justin_lee at ud dot com>
- Date: Tue, 17 Oct 2000 14:17:12 -0500
- Thread-Index: AcA4btkgyAPVoib/Qs+koiMtXoyUIA==
- Thread-Topic: 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;
}