// PR c++/115296 // { dg-do compile { target c++20 } } using size_t = decltype(sizeof(0)); template struct span { span(T); }; template span(T(&)[N]) -> span; // { dg-bogus "array exceeds maximum" } template requires (sizeof(T[N]) != 42) // { dg-bogus "array exceeds maximum" } span(T*) -> span; template using array_view = span; array_view x = 0;