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]

Internal compiler error


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


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