https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122494

--- Comment #6 from Patrick Palka <ppalka at gcc dot gnu.org> ---
A workaround for now is to either do:

         constexpr auto w = v;
         if constexpr (v == 0) {}

which forces 'v' to get first instantiated outside of a warning-dependent
folding context. Can also just do:

         if constexpr (v + 0 == 0) {}

Reply via email to