blob: 36368ded018e990b2db2a56758c9ee13afaa636e [file] [log] [blame]
// PR c++/20332
struct bar {};
void foo1() {
bar& b = bar(); // { dg-error "rvalue" }
}
void foo(bar& b = bar()) {} // { dg-error "rvalue" }