1 // PR c++/88394
2 // { dg-do compile { target c++14 } }
3 // { dg-options "" }
4
crash_me(unsigned short sz)5 void crash_me(unsigned short sz)
6 {
7 if (sz == 0) return;
8
9 short iov[sz];
10 auto fce = [&iv = iov](short value) { iv[0] = 0; };
11 fce(1);
12 }
13