This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]