------- Comment #7 from manu at gcc dot gnu dot org 2008-11-03 11:12 ------- (In reply to comment #6) > I think the "cannot be used as a function" error should print the exact object > only if it is a DECL_P, otherwise just print error: expression cannot be used > as a function". Imagine if the object is a 100KB statement expression, do we > want to print that? When we have to start/end location information, we'd just > print a caret range.
This doesn't only apply to that particular error but anywhere that tries to print a complex_expr. So it cannot be solved at that level. It must be solved inside pretty-printer. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35334