[Bug c++/35334] [4.2/4.3/4.4 regression] Broken diagnostic for complex cast
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Nov 3 11:05:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list