File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1106,9 +1106,17 @@ $(GNAME StatementNoCaseNoDefault):
1106
1106
$(GLINK ScopeBlockStatement)
1107
1107
)
1108
1108
1109
- $(P $(EXPRESSION) is evaluated. The result type T must be
1110
- of integral type or $(CODE char[]), $(CODE wchar[]) or $(CODE dchar[]).
1111
- The result is
1109
+ $(P $(I Expression) is evaluated.
1110
+ If the type of the $(I Expression) is an enum,
1111
+ it is repeatedly converted
1112
+ to its $(GLINK2 enum, EnumBaseType) until it isn't. Then,
1113
+ if the type is of integral type,
1114
+ the $(I Expression) undergoes $(DDSUBLINK spec/type, integer-promotions, Integer Promotions).
1115
+ Then, the type of the $(I Expression) must be either of integral type or
1116
+ a static or dynamic array of $(CODE char), $(CODE wchar), or $(CODE dchar).
1117
+ )
1118
+
1119
+ $(P The result is
1112
1120
compared against each of the case expressions. If there is
1113
1121
a match, the corresponding case statement is transferred to.
1114
1122
)
You can’t perform that action at this time.
0 commit comments