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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |mpolacek at gcc dot gnu.org,
                   |                            |ppalka at gcc dot gnu.org
           Priority|P3                          |P2

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
void
foo (int c)
{
  constexpr int r = 4;
  [&] (auto) { int n = r * c; int t[n]; } (0);
  [&] (auto) { int t[c]; } (0);
  [&] (auto) { int t[r]; } (0);
  [&] (auto) { int t[c * 4]; } (0);
}

works fine though.

Reply via email to