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: [PATCH]: Make "called object is not a function" message give name of object


Daniel Berlin <dberlin@dberlin.org> writes:

[...]

| > It should not be
| >
| >     case 'E':
| >       if (TREE_CODE (t) == IDENTIFIER_NODE)
| >         n = IDENTIFIER_POINTER (t);
| >       else
| >         return false;
| >       break;
| >
| > It should be calling pp_expression (cpp, t), which is the proper fix.
| >
| 
| Okay. that works.
| Or at least, close enough.
| The error message is now "called object 'bob({anonymous})' is not a
| function'.
| Here's an updated patch.
| Is this okay?

Yes.

Please, open a bugzilla PR for improvement on this and assign it to
me.  That is overdue, in conjunction with tree pretty-printing Jason
and RTH requested.

Thanks,

-- Gaby


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