// PR c++/48745 // { dg-options -std=c++0x } template struct add_rval_ref { typedef T&& type; }; template<> struct add_rval_ref { typedef void type; }; template typename add_rval_ref::type create(); template decltype(T{create()...}, char()) f(int); template char (&f(...))[2]; static_assert(sizeof(f(0)) != 1, "Error"); // { dg-bogus "void value" "" { xfail *-*-* } }