1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// PR c++/91364 - Implement P0388R4: Permit conversions to arrays of unknown bound. // { dg-do compile { target c++20 } } void f(const int(*)[]); void fb(const int(*)[3]); void f2(const int(&)[]); void fb2(const int(&)[3]); void g () { int arr[3]; f(&arr); fb(&arr); f2(arr); fb2(arr); }