We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9060b8 commit cd07bb1Copy full SHA for cd07bb1
src/frontc/cabs2cil.ml
@@ -4658,7 +4658,8 @@ and doExp (asconst: bool) (* This expression is used as a constant *)
4658
prechunk := (fun _ -> empty);
4659
piscall := false;
4660
let compatible =
4661
- try ignore(combineTypes CombineOther t1 t2); true
+ (* This built-in function ignores top level qualifiers (e.g., const, volatile). *)
4662
+ try ignore(combineTypes CombineOther (removeOuterQualifierAttributes t1) (removeOuterQualifierAttributes t2)); true
4663
with Failure _ -> false
4664
in
4665
if compatible then
0 commit comments