arocc icon indicating copy to clipboard operation
arocc copied to clipboard

Preprocessor allows extraneous tokens in preprocessor expression

Open ehaas opened this issue 1 year ago • 0 comments

This doesn't issue an error even though it should:

#if 1 < ABC 2
#endif

Identifiers, preprocessor numbers, and unary operators all seem to be incorrectly allowed currently. They're allowed regardless of position (before, after, or even in the middle of an expression).

ehaas avatar Apr 16 '24 07:04 ehaas