[typing] fix long-standing bug in evaluation of conditional in constant expr
Actually we can't completely avoid typing the branch that won't be evaluated: we need its type in order to convert the value of the other branch if needed.
Showing
- src/kernel_internals/typing/cabs2cil.ml 32 additions, 45 deletionssrc/kernel_internals/typing/cabs2cil.ml
- tests/syntax/compile_constant.c 6 additions, 0 deletionstests/syntax/compile_constant.c
- tests/syntax/oracle/compile_constant.res.oracle 2 additions, 0 deletionstests/syntax/oracle/compile_constant.res.oracle
Loading
Please register or sign in to comment