[cfe-dev] Patch: Add some semantic analysis to switch statements
andersca at mac.com
Tue Jul 17 19:18:12 PDT 2007
17 jul 2007 kl. 19.14 skrev Neil Booth:
> Anders Carlsson wrote:-
>> here's a patch that makes sure that that the switch condition
>> expression has an integer type, and also that a switch doesn't have
> But that's not what the standard requires; it requires a scalar
> type. You can download a copy of the revised standard from the
> openstd website.
I'm reading that spec. It says:
22.214.171.124 The switch statement
1 The controlling expression of a switch statement shall have integer
Am I missing something?
More information about the cfe-dev