1 // PR c++/92031 - bogus taking address of rvalue error. 2 // { dg-do compile { target c++11 } } 3 4 struct x { const int& l; }; 5 a(const x &)6void a(const x&) {} 7 8 template<class E> f()9void f() { 10 a(x { 0 }); 11 } 12 g()13void g() { 14 a(x { 0 }); 15 } 16 17 void test()18test () 19 { 20 f<int>(); 21 } 22