------- Comment #6 from jakub at gcc dot gnu dot org 2008-11-03 11:04 ------- 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.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35334