c++ bug

Thomas Kunert kunert@physik.tu-dresden.de
Tue Dec 15 04:07:00 GMT 1998


Hi,
consider this code:

//****************
class A{
public:
    double f1();
    const static double (A::*q)();
};

const double (A::*A::q)() = &f1;
//*****************

Egcs-1.1 accepts that, the current CVS doesn't and gives a weird
message:

h.cc:7: argument of type `double (A::)()' does not match `const double
(A::*)()'

Machine is i586-pc-linux-gnu.

Thomas



More information about the Gcc-bugs mailing list