------- Comment #8 from jwakely dot gcc at gmail dot com 2009-08-06 09:51 ------- I don't think any of those tests would be made correct simply by replacing 'f' with '&f'
Maybe they would have been accepted by GCC 2.95 with the ampersand present, but current GCC correctly requires '&C::f' I know some users want the compiler to suggest how to fix their errors, but it's hard to make a useful suggestion for most of the nearly infinite number of invalid expressions users can come up with. The suggestion is misleading in too many cases (specifically, the "did you forget the '&'?" hint doesn't solve the problem in any of the examples given in this PR.) -- jwakely dot gcc at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jwakely dot gcc at gmail dot | |com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31423