Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.pt / typename25.C
blobaa1d109022fe90c211020ff18022f4f382692462
1 // { dg-do assemble  }
2 // { dg-options "" }
3 // Copyright (C) 2000 Free Software Foundation
4 // Adapted by Nathan Sidwell 1 July 2000 <nathan@codesourcery.com>
5 // Derived from a bug report by scott snyder <snyder@fnal.gov>
6 // Our implicit typename extension was causing this pedantically
7 // correct program to fail
9 struct list
11   typedef int reference;
14 class d0_Collection_Base {};
17 template <class T>
18 class d0_List_1
19   : virtual public d0_Collection_Base,
20     public list
22 public:
23   typedef int reference;
26 template <class T>
27 class d0_List
29 public:
30   typedef d0_List_1<T> Base;
31   typedef typename Base::reference              reference;