Module Name: src Committed By: rillig Date: Sun Mar 7 20:06:48 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: do not allow assignment-expression for constant-expression It's a funny idea to do something like 'case a = 13:', but since any compiler will reject this code, there is no point in lint supporting it. No functional change since everywhere the grammar allows a constant expression, there is no ambiguity where an assignment could be interpreted differently. To generate a diff of this commit: cvs rdiff -u -r1.168 -r1.169 src/usr.bin/xlint/lint1/cgram.y Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.