This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Internal compiler error
- From: Ryszard Kabatek <Ryszard dot Kabatek at softax dot pl>
- Date: Tue, 20 Feb 2001 13:09:15 +0100
- Reply-To: Ryszard dot Kabatek at softax dot pl
Hi, I tested the current gcc snapshot.
In my sample I got the folowing error message:
x.cc: In function `int main(int, char**)':
x.cc:8: parse error before `&' token
x.cc:9: Internal error #122.
x.cc:9: Internal compiler error in finish_function, at cp/decl.c:14003
Please submit a full bug report, with preprocessed source if
appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for
instructions.
I know, I should use 'std::exception' instead of 'exception'.
But I would expect something like:
`exception' undeclared ...,
but not an internal compiler error.
#include <iostream>
#include <exception>
int main(int argc, char** argv)
{
try {
}
catch (exception& exc) {
}
return 0;
}
My configuration:
PC, RedHat 7.0.
gcc version 2.97 20010205 (experimental)
Regards
--
Ryszard Kabatek