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.


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;
}
%



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