[Bug c++/35334] [4.2/4.3/4.4 regression] Broken diagnostic for complex cast

manu at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Nov 3 11:13:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list