https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115027
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2024-05-10 CC| |hubicka at gcc dot gnu.org Blocks| |89180 Keywords| |diagnostic --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- I think this is more an IPA issue but of course in theory the C fronted could know it's parsing the initializer of 'f' when setting TREE_USED of 'f'. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89180 [Bug 89180] [meta-bug] bogus/missing -Wunused warnings