[Bug c++/118392] "-w" fails to fully inhibit "'void a::b()' has not been declared within a" warning
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118392 --- Comment #5 from Simon Martin --- Patch submitted in https://gcc.gnu.org/pipermail/gcc-patches/2025-January/673394.html
[Bug c++/118392] "-w" fails to fully inhibit "'void a::b()' has not been declared within a" warning
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118392 Simon Martin changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |simartin at gcc dot gnu.org --- Comment #4 from Simon Martin --- Working on it through bug #118163
[Bug c++/118392] "-w" fails to fully inhibit "'void a::b()' has not been declared within a" warning
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118392 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2025-01-10 Ever confirmed|0 |1 --- Comment #3 from Andrew Pinski --- Confirmed.
[Bug c++/118392] "-w" fails to fully inhibit "'void a::b()' has not been declared within a" warning
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118392 --- Comment #2 from Andrew Pinski --- Created attachment 60087 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60087&action=edit testcase Next time please attach or paste inline the testcase. Note attaching has a way to paste into a field instead of needing to attach via a file.
[Bug c++/118392] "-w" fails to fully inhibit "'void a::b()' has not been declared within a" warning
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118392 --- Comment #1 from Andrew Pinski --- There is auto_diagnostic_group but it looks like it is not working. if (hidden_p) { auto_diagnostic_group d; pedwarn (DECL_SOURCE_LOCATION (decl), 0, "%qD has not been declared within %qD", decl, scope); inform (DECL_SOURCE_LOCATION (found), "only here as a %"); }