[Bug c++/118458] New: No mechanism to disable all warnings locally (supported by Clang with diagnostic ignored "-Weverything")

2025-01-13 Thread stephenberry.developer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118458 Bug ID: 118458 Summary: No mechanism to disable all warnings locally (supported by Clang with diagnostic ignored "-Weverything") Product: gcc Version: 14.2.0

[Bug c++/118458] No mechanism to disable all warnings locally (supported by Clang with diagnostic ignored "-Weverything")

2025-01-13 Thread stephenberry.developer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118458 --- Comment #6 from Stephen Berry --- Here is my primary case for disabling the waring: https://github.com/stephenberry/glaze/blob/main/include/glaze/reflection/to_tuple.hpp Line 38 This is for the any_t operator T: template requir

[Bug c++/118458] No mechanism to disable all warnings locally (supported by Clang with diagnostic ignored "-Weverything")

2025-01-13 Thread stephenberry.developer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118458 --- Comment #7 from Stephen Berry --- I should clarify that GCC doesn't appear to emit this warning after GCC13. So, in this case I was looking for a solution for older versions of GCC. This request was written generically, so that the issue cou

[Bug c++/118458] No mechanism to disable all warnings locally (supported by Clang with diagnostic ignored "-Weverything")

2025-01-13 Thread stephenberry.developer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118458 --- Comment #4 from Stephen Berry --- One particular warning I'm trying to silence right now is: `used but never defined`. I now see that there is an open issue to disable this particular warning here: https://gcc.gnu.org/bugzilla/show_bug.cgi?

[Bug c++/118458] No mechanism to disable all warnings locally (supported by Clang with diagnostic ignored "-Weverything")

2025-01-13 Thread stephenberry.developer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118458 --- Comment #10 from Stephen Berry --- I definitely get warnings in GCC12, but from more complex constexpr code than your simple example. Example output: error: inline function ‘constexpr glz::detail::any_t::operator T() const [with T = double]