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

--- Comment #7 from Drea Pinski <pinskia at gcc dot gnu.org> ---
commit 49bfa7b9cf in glib caused the issue:
```
commit 49bfa7b9cf8b16f7f6a5b1db565575d61a37100f
Author: Christian Hergert <[email protected]>
Date:   Fri Sep 20 12:45:30 2024 -0700

    gvarianttype: mark const functions as such

    These functions only rely on their input parameter and no globals, thus
    are candidates for sub-expression elimination.


```

They read the documentation wrong. They rely on their input argument but also
the memory that the argument provides. That is pure.

Reply via email to