PATCH RFA: Invalid C++ enum conversions in initializers and returns

Joseph S. Myers
Sat Apr 25 23:24:00 GMT 2009

On Sat, 25 Apr 2009, Ian Lance Taylor wrote:

> The first patch is the relatively small change to the C frontend to warn
> about the new cases.  Testing revealed that I had failed to set the
> original type correctly for the comma operator.  I also had to add a new
> test for the case of initializing a structure with a bitfield of enum
> type, as the enum type has been lost when convert_for_assignment is
> called.  This patch also includes test cases.  This patch requires
> approval from the C frontend maintainres.

These changes are OK.

Joseph S. Myers

More information about the Java-patches mailing list