PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / auto-fn35.C
bloba40817442d712b203b1fdf5fe4360559ebb94a9c
1 // PR c++/77790
2 // { dg-do compile { target c++11 } }
4 template < typename S > struct A
6   // { dg-error "" "" { target c++11_only } .+1 }
7   template < typename T > static auto f () { return 0; } 
8   template < class U = decltype (f < S > ()) > int g () { return 0; }
9 };
11 auto a = A < int > {}.g ();