// PR c++/39070 // { dg-options "-std=c++0x" } template struct junk { template static Z y(); template static int test(...); template static char test(decltype(y())*); static int const value=sizeof(test(0)); }; typedef char type[junk::value==sizeof(char) ? 1 : -1];