Mail Archives: djgpp/1993/06/16/09:09:35
Hi compilling the folowing program gcc crashes with an internal error.
--------------------------- snip snip -------------------------------
#include <iostream.h>
class A {
void c ();
static int a;
public:
static void b (A &ar);
};
void A::c () { cout << "in c\n"; }
int A::a (1);
static void A::b (A &ar)
{
cout << "in b, a == " << a << endl;
ar. c ();
}
main ()
{
A o1;
void (*f) (A &ar) = &A::b;
f (o1);
return (0);
}
--------------------------- snip snip -------------------------------
ciao vincent AT datmuc DOT dat DOT de
- Raw text -