https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115358
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note this is not related to NSDMI nor related to use of STR in a non-complete type context as shown by: ``` template <int N> void foo(const int (&data)[N]) {} template <class T> struct Bar { static constexpr int STR[] = {1,2,3}; Bar(); }; template<class T> Bar<T>::Bar() { [](auto){ foo(STR); }; } int main() { Bar<void>{}; } ```