1 // PR c++/33943 2 // { dg-do compile { target c++11 } } 3 4 template<typename... A> struct foo {}; 5 6 template<typename A0, typename... A1> struct bar {}; 7 8 template<typename U> struct baz; 9 10 template<template<typename...> class T, typename... U> struct baz< T<U...> > 11 {}; 12 13 template<template<typename, typename...> class T, typename U, typename... V> 14 struct baz< T<U, V...> > 15 {}; 16 17 baz< foo<int, short> > b1; 18 baz< bar<int, short> > b2; 19