Internal error (recursive func-operator?)
Yotam Medini
yotamm@tmai.com
Fri Oct 10 10:19:00 GMT 1997
telaviv:916> egcs++ -v
Reading specs from /home/seg/yotam/build/dryinst.Solaris/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.90.12/specs
gcc version egcs-2.90.12 971008 (gcc2-970802 experimental)
telaviv:917> cat yong.cc
#include <iostream.h>
class A {
public:
A() { cout << "A created...\n";}
virtual void func(void) { cout << "A::func called...\n"; }
};
class B : public A
{
public:
B() { cout << "B created...\n"; }
void func(void) { cout << "B::func called...\n"; }
B& operator ()(void) { cout << "operator() called...\n";
return *this; }
};
class C
{
public:
void func( A& a ) { a.func(); }
};
int main(void)
{
C c;
c.func( B()() );
return 0;
}
telaviv:918> egcs++ -c yong.cc
yong.cc: In function `int main()':
yong.cc:29: Internal compiler error.
yong.cc:29: Please submit a full bug report to `egcs-bugs@cygnus.com'.
-- yotam
More information about the Gcc-bugs
mailing list