[Bug c++/89074] valid pointer equality constexpr comparison rejected

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 6 20:01:23 GMT 2022


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 52136
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52136&action=edit
gcc12-pr89074.patch

Another patch on top of
https://gcc.gnu.org/pipermail/gcc-patches/2022-January/587745.html
What should be still done is when constexpr evaluating POINTER_PLUS_EXPR
diagnose out of bounds accesses like e.g. ARRAY_REF evaluation does.


More information about the Gcc-bugs mailing list