2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / typename5.C
blob2f72b5f86019cc2e6885d08ee4779282ff0fd95a
1 // { dg-do compile }
3 // Origin: ariels@compugen.co.il
5 // PR c++/2513: typename handling when scope is dependent as
6 // described in DR108.
8 template <bool flag> struct Select {
9   typedef int Result;
12 template <template<class> class Pred> struct FindType {
13   typedef typename Select<true>::Result Result;
16 template <int bits> struct Int {
17   template<typename T> struct RightSize {};
18   typedef typename FindType<RightSize>::Result type;