https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128711
--- Comment #3 from Drea Pinski <pinskia at gcc dot gnu.org> --- (In reply to Leo Yuriev from comment #2) > All that remains is to wish that gcc would issue a warning when accessing > global memory in the "const" path. That is tracked as PR 18487 .
