[Bug c++/113582] incorrect warning about unused label with `pragma GCC diagnostic` around the unused label

2024-05-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113582 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/113582] incorrect warning about unused label with `pragma GCC diagnostic` around the unused label

2024-05-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113582 --- Comment #7 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:d9318caed3bbff8136d13e00dcfc020a59d10f78 commit r15-329-gd9318caed3bbff8136d13e00dcfc020a59d10f78 Author: Marek Polacek Date:

[Bug c++/113582] incorrect warning about unused label with `pragma GCC diagnostic` around the unused label

2024-01-30 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113582 --- Comment #6 from Marek Polacek --- Patch approved for GCC 15: https://gcc.gnu.org/pipermail/gcc-patches/2024-January/643999.html

[Bug c++/113582] incorrect warning about unused label with `pragma GCC diagnostic` around the unused label

2024-01-24 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113582 --- Comment #5 from Marek Polacek --- The reason I'm not doing simply TREE_USED (label) = TREE_USED (decl); in the pt.cc/LABEL_EXPR hunk is that I think we still want the warning in the second function, what with the goto being a discarded

[Bug c++/113582] incorrect warning about unused label with `pragma GCC diagnostic` around the unused label

2024-01-24 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113582 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/113582] incorrect warning about unused label with `pragma GCC diagnostic` around the unused label

2024-01-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113582 Andrew Pinski changed: What|Removed |Added Summary|incorrect warning about |incorrect warning about

[Bug c++/113582] incorrect warning about unused label

2024-01-24 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113582 Marek Polacek changed: What|Removed |Added Last reconfirmed||2024-01-24 Ever confirmed|0

[Bug c++/113582] incorrect warning about unused label

2024-01-24 Thread nmmm at nmmm dot nu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113582 --- Comment #1 from Nikolay Mihaylov --- If you move the pragma outside the templated function, no warning is shown: #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-label" template void do_something(){ start: