| 1 |
// { dg-do assemble } |
| 2 |
// { dg-options "" } |
| 3 |
// Copyright (C) 2000 Free Software Foundation |
| 4 |
// Adapted by Nathan Sidwell 1 July 2000 <[email protected]> |
| 5 |
// Derived from a bug report by scott snyder <[email protected]> |
| 6 |
// Our implicit typename extension was causing this pedantically |
| 7 |
// correct program to fail |
| 8 |
|
| 9 |
struct list |
| 10 |
{ |
| 11 |
typedef int reference; |
| 12 |
}; |
| 13 |
|
| 14 |
class d0_Collection_Base {}; |
| 15 |
|
| 16 |
|
| 17 |
template <class T> |
| 18 |
class d0_List_1 |
| 19 |
: virtual public d0_Collection_Base, |
| 20 |
public list |
| 21 |
{ |
| 22 |
public: |
| 23 |
typedef int reference; |
| 24 |
}; |
| 25 |
|
| 26 |
template <class T> |
| 27 |
class d0_List |
| 28 |
{ |
| 29 |
public: |
| 30 |
typedef d0_List_1<T> Base; |
| 31 |
typedef typename Base::reference reference; |
| 32 |
}; |