// PR c++/47999// { dg-options -std=c++0x }int&identity(int&i){returni;}// In a function template, auto type deduction works incorrectly.template<typename=void>voidf(){inti=0;auto&&x=identity(i);// Type of x should be `int&`, but it is `int&&`.}intmain(intargc,char*argv[]){f();return0;}