8sa1-gcc/gcc/testsuite/g++.dg/cpp0x/initlist-array5.C
Jason Merrill d478f1e4c9 PR c++/80415 - wrong error with default arg and array reference.
* tree.c (lvalue_kind): Return clk_class for an array prvalue.

From-SVN: r246954
2017-04-17 15:39:00 -04:00

8 lines
134 B
C

// PR c++/80415
// { dg-do compile { target c++11 } }
struct A {
A(int, int, const int (&)[1] = {});
};
A fn1() { return {0, 0}; }