https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554
Klaus Rudolph <lts-rudolph at gmx dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lts-rudolph at gmx dot de --- Comment #4 from Klaus Rudolph <lts-rudolph at gmx dot de> --- The code can be modified to be well formed if changed to: if constexpr (F != nullptr )) { g++ still emits the bogus warning in that case which is a bug I believe!