view gcc/testsuite/g++.dg/cpp1y/auto-fn35.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// PR c++/77790
// { dg-do compile { target c++11 } }

template < typename S > struct A
{
  // { dg-error "" "" { target c++11_only } .+1 }
  template < typename T > static auto f () { return 0; } 
  template < class U = decltype (f < S > ()) > int g () { return 0; }
};

auto a = A < int > {}.g ();