c++: hash table ICE with variadic alias [PR105003]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / conv-tmpl2.C
blob8a505769c3c03b40e39c0138f58d91a7a43ab861
1 // PR c++/92031 - bogus taking address of rvalue error.
2 // { dg-do compile { target c++11 } }
4 struct x { const int& l; };
6 void a(const x&) {}
8 template<class E>                          
9 void f() {
10   a(x { 0 });
13 void g() {
14   a(x { 0 });
17 void
18 test ()
20   f<int>();