This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error.
- To: egcs-bugs at cygnus dot com
- Subject: Internal compiler error.
- From: Fred Richardson <frichard at bbn dot com>
- Date: Wed, 16 Sep 1998 12:00:26 -0400
- Reply-to: frichard at bbn dot com
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;
}
%