When a macro is invoked to specify the size of an array in a field declaration, Maki fails to report that the macro is invoked where an integral constant expression (ICE) is required.
For example,
#define LEN (3)
typedef struct foo {
int array[LEN];
} foo;
For the above invocation of LEN, Maki reports IsInvokedWhereICERequired as false, when it should be true.
When a macro is invoked to specify the size of an array in a field declaration, Maki fails to report that the macro is invoked where an integral constant expression (ICE) is required.
For example,
For the above invocation of
LEN
, Maki reportsIsInvokedWhereICERequired
asfalse
, when it should betrue
.