Daily bump.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ns / type2.C
blobd8407b151b4ce9e50f79ccbc14520ccf2c6337a9
1 // Build don't link:
2 // 
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 11 April 2001 <nathan@codesourcery.com>
5 // Origin:stephen.webb@cybersafe.com 
7 // Bug 2125. TYPE_DECLS never had their DECL_CONTEXT set, which
8 // confused forward references to classes.
10 typedef void T;
11 namespace A {
12   class C;
13   typedef class C C;
14   typedef int T;
15   class C
16   {
17     T i;                // got bogus error, found wrong T
18   };