File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 3838 // be reported as non-compliant.
3939 leftOpTypeCategory = EssentiallyEnumType ( ) and
4040 rightOpTypeCategory = EssentiallyEnumType ( ) and
41- not leftOpEssentialType = rightOpEssentialType and
41+ not leftOpEssentialType . getUnspecifiedType ( ) = rightOpEssentialType . getUnspecifiedType ( ) and
4242 message =
4343 "The operands of this operator with usual arithmetic conversions have mismatched essentially Enum types (left operand: "
4444 + leftOpEssentialType + ", right operand: " + rightOpEssentialType + ")."
Original file line number Diff line number Diff line change @@ -37,4 +37,9 @@ void testOps() {
3737 enum { G };
3838 s32 + G ; // COMPLIANT
3939 c == '\n' ; // COMPLIANT
40+
41+ typedef enum { H } E3 ;
42+
43+ E3 e3a = H ;
44+ e3a < H ; // COMPLIANT
4045}
You can’t perform that action at this time.
0 commit comments