[Bug tree-optimization/125916] [17 regression] Mesa maybe miscompiled with __attribute__((const))

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jun 21 03:54:25 GMT 2026


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

--- Comment #3 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Yes this code is undefined. Because it is not const. 

There is request for a different attribute which fits this case but I cant find
it right now.


More information about the Gcc-bugs mailing list