This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: PATCH RFA: Invalid C++ enum conversions in initializers and returns
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, jason at redhat dot com, java-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Sat, 25 Apr 2009 23:17:30 +0000 (UTC)
- Subject: Re: PATCH RFA: Invalid C++ enum conversions in initializers and returns
- References: <m3skjwtv3n.fsf@google.com>
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
joseph@codesourcery.com