https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113582
Marek Polacek changed:
What|Removed |Added
Resolution|--- |FIXED
Status|ASSIGNED
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:
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113582
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113582
Andrew Pinski changed:
What|Removed |Added
Summary|incorrect warning about |incorrect warning about
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113582
Marek Polacek changed:
What|Removed |Added
Last reconfirmed||2024-01-24
Ever confirmed|0
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: