1 // PR c++/71576 2 // { dg-do compile { target c++11 } } 3 4 template < typename T > T && foo (); 5 6 struct A 7 { 8 int i:5; 9 }; 10 foo()11 void foo () 12 { 13 int &&j = foo < A > ().i; 14 } 15