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]

c++ bug


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


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