Repository navigation
Conversation
b0301cb to
717d555
Compare
xavierleroy
commented
Nov 26, 2026
Predictably, this triggers one warning per source file on all the supported Coq/Rocq versions
Warning: There is no flag or option with this name:
"Old IfThen Without Bool Coercion". [unknown-option,option]
So: no.
Is there a way to know where if is currently used in CompCert on types other than bool ? Obviously, sumbool, but I'd rather make sure there are no other.
Is there a (backward-compatible) way to declare coercions from these types to bool that would please the next versions of Rocq but not break the current versions?
proux01
commented
Nov 27, 2026
Predictably, this triggers one warning per source file on all the supported Coq/Rocq versions
Warning: There is no flag or option with this name: "Old IfThen Without Bool Coercion". [unknown-option,option]
You could silence it but I'm not sure I would recommend it. Alternatively, we could add a #[warning="-unknown-option"] Set Old IfThen Without Bool Coercion. at the beginning of each file.
Is there a way to know where
ifis currently used in CompCert on types other thanbool? Obviously,sumbool, but I'd rather make sure there are no other.
Compiling on Rocq 9.3 with -w +non-boolean-if indicates there isn't (at least for the target built in Rocq CI, didn't check all of them).
Is there a (backward-compatible) way to declare coercions from these types to
boolthat would please the next versions of Rocq but not break the current versions?
Well, that's exactly what the current PR is doing.
Adapt to rocq-prover/rocq#22586