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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2025-03-25 00:00:00         |2026-2-2

--- Comment #20 from Richard Biener <rguenth at gcc dot gnu.org> ---
There's a duplicate for the -Wsuggest-attribute=pure issue I think.  But the
call to weak() is not eliminated in the testcase from comment#1, so IMO it
isn't a good reduced testcase.

Confirmed for the original testcase with -O2 -fno-inline.

-fno-ipa-pure-const helps.

Reply via email to