2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / dependent-name2.C
blob9e0cbcee189b3bc529f062675fc72e6fdf077364
1 // { dg-do compile }
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 1 Aug 2003 <nathan@codesourcery.com>
6 // PR 10530. Thought a type was dependent.
8 template <typename T>
9 struct Foo {
10   struct Inner {
11     typedef int type;
12   };
15 template <typename A> struct Bar {
16   typedef typename Foo<int>::Inner::type type;