https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119666
--- Comment #2 from Artem Labazov <123321artyom at gmail dot com> ---
(In reply to Jakub Jelinek from comment #1)
> I think the GCC behavior is correct here, in C++ const has special meaning
> and even attribute like weak shouldn't change that.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119666
Bug ID: 119666
Summary: Incorrect constant propagation of 'const' variable
with [[gnu::weak]] attribute
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity