https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118458
--- Comment #10 from Stephen Berry <stephenberry.developer at gmail dot com> --- 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]’ used but never defined [-Werror] But, I didn't open this issue with the intent to fix these incorrect warnings, because they seem already to be fixed in later GCC. Instead, I'm just using this as an example of how I have been unable to properly setup pipelines that test for warnings in GCC because there is no way to disable some warnings. This is also true when encountering third party code that cannot be edited.