http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60591

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-03-19
                 CC|                            |manu at gcc dot gnu.org
          Component|middle-end                  |c
     Ever confirmed|0                           |1

--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
The code in unsafe_conversion_p does not handle enumeral_type only integer_type
and real_type. Somebody will need to update it to handle it, being careful with
existing warnings in the C++ FE that do warn about enumeral type conversions.

Clang does warn:

pr60591.c:11:10: warning: implicit conversion loses integer precision: 'enum
xpto' to 'unsigned char' [-Wconversion]
  return a;
  ~~~~~~ ^

Reply via email to