[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / attrib53.C
blob408433dd2f265c3019b086e1e52171431754c101
1 // { dg-do compile { target c++11 } }
3 inline namespace N __attribute__((__abi_tag__ ("foo"))) {}
4 template <typename> struct A;
5 namespace N {
6 template <typename> class B;
8 template <typename> class C {};
9 template <typename> struct D {
10   template <typename _Up> using G = C<_Up>;
12 template <typename T> struct F {
13   template <typename U> struct H {
14     typedef typename D<T>::template G<U> I;
15   };
17 template <typename T, typename = C<T>> struct J {
18   C<A<const B<char>>> L;
19   typedef F<C<int>>::H<A<const B<char>>>::I M;
20   J<M> *a;