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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |ppalka at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |ppalka at gcc dot 
gnu.org
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2022-12-17

--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
The capturing version of the testcase is now accepted on trunk, unfortunately
we still reject the original non-capturing version.

Another workaround that's accepted by GCC 9+ is to avoid using N in an
evaluated context in the definition of vector_type:

  using vector_type = std::array<T, decltype(N){}>;

Reply via email to