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]

Re: [wwwdocs] Document Waddress in GCC 4.2


On 31/03/07, Gerald Pfeifer <gerald@pfeifer.com> wrote:
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?

I think you should open a PR for this, otherwise it may be forgotten.


Cheers,

Manuel.


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