This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35334] [4.2/4.3/4.4 regression] Broken diagnostic for complex cast
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Oct 2008 14:52:45 -0000
- Subject: [Bug c++/35334] [4.2/4.3/4.4 regression] Broken diagnostic for complex cast
- References: <bug-35334-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from manu at gcc dot gnu dot org 2008-10-25 14:52 -------
The C front-end prints:
error: called object ?(int __complex__){(int)__real__ (i), (int)__imag__ (i)}?
is not a function
which is not great either.
We could try to dump the complex expression as a CONVERT_EXPR:
error: ?(int __complex__)((int)__real__ i)? cannot be used as a function
or we can just print something like
error: ?__complex__ expression? cannot be used as a function
I think I prefer the latter. Any opinions?
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35334