3 // { dg-options "-fsanitize=bounds -std=c++14" }
7 static constexpr bool c[] {b...};
8 static constexpr auto foo ()
11 for (unsigned long i = 0; i < sizeof (c); i++)
16 static constexpr auto n = foo () + 1;
17 static constexpr auto bar ()
20 for (int g = 0, i = 0; g < n; ++g)
22 while (i < sizeof...(b) && c[i++])
33 S <true, false, false, true, true, true, false, true> s;
34 constexpr auto c = s.bar ();
35 static_assert (s.bar () == 4 * 64 + 5, "");