1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// PR c++/40274 // { dg-options "-g" } template <class T> struct valuelist_types { struct null { }; template <T V, class next=null> struct list { }; }; template <unsigned D> void foo() { typename valuelist_types<unsigned>::template list<D> v; } void bar() { valuelist_types<unsigned>::list<2> v; }