[clang] Reference to 'int[1]' cannot bind to 'int[]' (original) (raw)
GCC test: g++.dg/cpp2a/paren-init29.C
Related: P0388R4
int (&&r)[3] = static_cast<int[3]>(42); int (&&r2)[1] = static_cast<int[]>(42); // clang errors: reference to type 'int[1]' could not bind to an rvalue of type 'int[]' int main () { if (r[0] != 42 || r[1] != 0 || r[2] != 0) __builtin_abort (); if (r2[0] != 42 || sizeof (r2) != sizeof (int)) __builtin_abort (); }