You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a declaration of a function comes after a definition of the same function, any constraints placed on the declaration are lost. This seems to be due to an asymmetry in the declaration merging code.
Ensure that constrains generated due to a function's declaration are
applied to the variables generated at the definition even when
declaration appears after the definition.
When a declaration of a function comes after a definition of the same function, any constraints placed on the declaration are lost. This seems to be due to an asymmetry in the declaration merging code.
Example:
defn_then_decl.c
:3c -output-postfix=checked defn_then_decl.c
writes the following todefn_then_decl.checked.c
:Then
clang defn_then_decl.checked.c
fails with:Compare to
decl_then_defn.c
:3C correctly does not change this because of the macro.
@john-h-kastner expressed interest in fixing this if it ends up being a small amount of work.
The text was updated successfully, but these errors were encountered: