Bad Error Message
Andrew Bell
abell@codenet.net
Tue Apr 21 19:10:00 GMT 1998
The following from the ARM:
class X {
int a;
mem(int i = a); // error: nonstatic member 'a'
// used as default argument
};
Generates the following incorrect error message in egcs:
file:line no: request for member 'a' in static member function
The function is NOT a static member function. It should say:
file:line no: bad request for nonstatic member 'a' in initialization
or something similar.
-- Andrew Bell /\ \|/
/ \ /\ --0--
andrew.bell@bigfoot.com / \/ \ /|\
MCI (719) 535-4932 / \/\
Colo. Springs, CO 80919 / \
More information about the Gcc
mailing list