r183084 - Properly consider the range of enum for range comparisons in C mode

John McCall rjmccall at apple.com
Fri Jun 7 11:11:18 PDT 2013


On Jun 2, 2013, at 1:11 AM, David Majnemer <david.majnemer at gmail.com> wrote:
> Author: majnemer
> Date: Sun Jun  2 03:11:22 2013
> New Revision: 183084
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=183084&view=rev
> Log:
> Properly consider the range of enum for range comparisons in C mode
> 
> In some cases, clang applies the C++ rules for computing the range of a
> value when said value is an enum.
> 
> Instead, apply C semantics when in C mode.

Was this proposed or reviewed somewhere?  This is totally wrong.

John.



More information about the cfe-commits mailing list