OSDN Git Service

gcc:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / dependent-name2.C
1 // { dg-do compile }
2
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 1 Aug 2003 <nathan@codesourcery.com>
5
6 // PR 10530. Thought a type was dependent.
7
8 template <typename T>
9 struct Foo {
10   struct Inner {
11     typedef int type;
12   };
13 };
14
15 template <typename A> struct Bar {
16   typedef typename Foo<int>::Inner::type type;
17 };
18