// PR c++/49389 // { dg-do compile { target c++11 } } template T&& val(); struct A {}; typedef decltype(val().*val()) type; template struct assert_type; template<> struct assert_type {}; assert_type test;