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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot 
gnu.org

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with mine r260619, before it was of course rejected.  But this version

template<bool ... bits>
int int_from_bits()
{
    int a[1] = {};
    int index = 0;
    for (int _ : a)
    {
        index;
    }
    return 0;
}

int j = int_from_bits<>();

compiles fine.  So mine, I guess.  Not a regression though.

Reply via email to