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

--- Comment #1 from Matthias Kretz (Vir) <mkretz at gcc dot gnu.org> ---
Similar/related test case (https://compiler-explorer.com/z/3Wv3dxnG1):

void f()
{
    template for (constexpr auto i : {1})
    {
        if constexpr (false) (void)i;
    }
}

Reply via email to