<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55232>55232</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            variable cannot be implicitly captured in a lambda with no capture-default specified
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          hewillk
      </td>
    </tr>
</table>

<pre>
    This is a weird bug

```cpp
#include <array>
#include <tuple>

template<class Tuple>
auto foo() {
  constexpr auto N = std::tuple_size_v<Tuple>;
  constexpr auto M = []<std::size_t... Is>
  (std::index_sequence<Is...>) {
    std::array<std::size_t, N> a{Is...}; // ok
    std::array<std::size_t, N> b{};      // not ok
    return 0;
  }(std::make_index_sequence<N>{});
};
```

https://godbolt.org/z/h7f1sTW6j
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydU0tzmzAQ_jXishMGC8uUA4fYbmZyaE6e6dEjpLVRLCOKhB3n13cBx6-2lzKLJPbx7bfLqnT6VKwq44FEwhFNq6HstixZsuT5vM6SUVTTnDU8NbWynUZg6UK2rTyx9PvfbKFrLF5twxpw31gZSL1QVnoPqzsn2QUHG-cY_8Z4Diybj3oA5Wof8KNpYfB5owRL8EGz9JlkSLX25hPXB4K-gKb_iv8xxDMxZ2JJARegASLEcQyv_sIKgPhcXEyt8WPt8VeHteoLefXk3zvfM4YrvXOXHtMwvoA3CgRJYSNKRmzmlO6FBNzuP7DKnsIIMzxnrNqFO7wWQ9fWkNy0qI-6qXMvd7j-o9g-xzkDzy_BY8KHkbn971UIje9xBzZbp0tnQ-zaLX190ltlm4lf_Zy9R7pIdZ7mMgomWCwOsjWytAhK1n0NJYKhETKKrCdSNlQGajA1TbCV-1LTIJtQUb1fxieNG9nZAL5BZTYGddS1tnhgRDFdGSu3pw9rD1_bU9O6d1TU3hfjfYeeDkLwlEcV8eSYJcj5TGT5DCVyLaeStonmUyGmkZUlWl_0U8Z5jUcYIOhMQxeZgiecJyLhk4wLLmKlJqpMJyJR5SzNhWTTBPfS2Ljn0bcqaouBEl1RT0ZrfPBXI10ms60Ri3GoIxrzyrVFhUdj7S4aUhcD9d9cuCwz">