This is the mail archive of the gcc-patches@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] |
Other format: | [Raw text] |
PS: I have one comment, not on the patch but on warnings. For the following input
struct C { int f() { return 1; } };
int f(C &c) { return ( 1 == c.f ); }
we currently issue
In function 'int f(C&)': 6: error: invalid use of member (did you forget the '&' ?)
In such a case, that is, for member functions, isn't adding the missing () more likely than adding &? Would you like me to create a Bugzilla for this?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |