Internal compiler error.
Fred Richardson
frichard@bbn.com
Wed Sep 16 09:00:00 GMT 1998
Here's an example that will crash on i686lin and sun4sol. The problem
seems to go away if you remove the arguments from the definition of
the destructor:
% gcc -v
Reading specs from /d4mutl/bybrad/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
% g++ main.cc -o main
main.cc: In method `foo::~foo()':
main.cc:9: Internal compiler error.
main.cc:9: Please submit a full bug report to `egcs-bugs@cygnus.com'.
% cat main.cc
struct foo
{
~foo();
};
foo::~foo(int arg)
{
}
int main()
{
foo f;
cout << "Hello" << endl;
}
%
More information about the Gcc-bugs
mailing list