[Bug c++/119666] Incorrect constant propagation of 'const' variable with [[gnu::weak]] attribute

2025-04-07 Thread 123321artyom at gmail dot com via Gcc-bugs
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.

[Bug c++/119666] New: Incorrect constant propagation of 'const' variable with [[gnu::weak]] attribute

2025-04-07 Thread 123321artyom at gmail dot com via Gcc-bugs
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