https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93699
--- Comment #1 from Laurent Stacul <laurent.stacul at gmail dot com> --- Please note that reversing b and d works fine: if (*b == *d) { // This does not work if (*d == *b) { // This is ok Regards, Stac