[Bug analyzer/105898] RFE: -fanalyzer should complain about overlapping args to memcpy and mempcpy

tlange at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 12 13:02:40 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105898

--- Comment #3 from Tim Lange <tlange at gcc dot gnu.org> ---
This checker is nearly finished, but is blocked by:
  https://gcc.gnu.org/pipermail/gcc/2022-July/239213.html

tl;dr: the current draft of the C standard does include new examples of how the
restrict keyword should be handled and states that two restrict-qualified
parameters are allowed to alias if they are never written in the body. Neither
my checker nor Wrestrict does check that at the moment. We yet have to decide
how to proceed with this checker.


More information about the Gcc-bugs mailing list