PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / diagnostic / ref1.C
blob36368ded018e990b2db2a56758c9ee13afaa636e
1 // PR c++/20332
3 struct bar {};
4 void foo1() {
5   bar& b = bar();               // { dg-error "rvalue" }
7 void foo(bar& b = bar()) {}     // { dg-error "rvalue" }