[Bug c/33193] slopiness in __real/__imag

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 2 06:04:15 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33193

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |pinskia at gcc dot gnu.org
             Status|REOPENED                    |ASSIGNED
           Keywords|                            |documentation

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Chris Lattner from comment #6)
> http://gcc.gnu.org/onlinedocs/gcc/Complex.html#Complex still does not
> document what arguments are accepted to __real and __imag.

I think the documentation is clear here though:
"a complex-valued expression exp".

This means the type that is accepted is "_Complex type", which can be prompted
from type.

Maybe we should add that scalar types can be prompted to _Complex types just to
make it fully clear what is allowed. Let me take a stab at that.


More information about the Gcc-bugs mailing list