https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119866
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #6) > Dup. > > *** This bug has been marked as a duplicate of bug 106889 *** I should say bug 106889 is exactly the same as this one and yes it is __builtin_strlen as shown by that bug report. As mentioned in that bug report __builtin_strlen most likely should not be used inside an const expr and all.