blob: 401fe0e324c4d7b9aebb8879443a239333b3c4e4 [file] [log] [blame]
// PR c++/62115
struct A {};
struct B : A {};
struct C
{
C(A& a = B()) {} // { dg-error "rvalue" }
};
C c; // { dg-error "" }