[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / typedef33.C
blob1d2117b3a4108072d8f751fabb81609710bd04a9
1 // Origin PR c++/43800
2 // { dg-do compile }
4 template<class T, class U=T>
5 struct V
7   typedef T t_type;
8 };
10 template<class T>
11 class J
13   typedef typename V<T>::t_type t_type; 
14   const t_type& f(); // #0:
15 private:
16   t_type b;
19 template<class T>
20 const typename V<T>::t_type& J<T>::f() {return b;} // #1