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

Mikael Morin <mikael at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikael at gcc dot gnu.org

--- Comment #19 from Mikael Morin <mikael at gcc dot gnu.org> ---
I think integral exponentiation is different from other operators.

a ** b for integral b is a * a * ... * a, so I would say we can define the
following mixed operator types:
  any ** unsigned -> any (where any in { unsigned, integer, real, complex })
  unsigned ** integer -> unsigned

The second one is uncontroversial, I think.
The first one is slightly less clear, as the modular integer (unsigned) is
implicitly converted to a true integer before the exponent can be used.

Reply via email to