| 1 |
// { dg-do compile } |
| 2 |
|
| 3 |
// Copyright (C) 2003 Free Software Foundation, Inc. |
| 4 |
// Contributed by Nathan Sidwell 2 Aug 2003 <[email protected]> |
| 5 |
|
| 6 |
// PR 11766. ICE |
| 7 |
|
| 8 |
template<typename T> |
| 9 |
struct normal_iterator |
| 10 |
{ |
| 11 |
normal_iterator(const T& __i); |
| 12 |
}; |
| 13 |
|
| 14 |
|
| 15 |
template<typename _Tp> |
| 16 |
struct vector |
| 17 |
{ |
| 18 |
void end() const { normal_iterator<const _Tp*> (this->pt); } |
| 19 |
void size() const { end(); } |
| 20 |
_Tp* pt; |
| 21 |
}; |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
struct MuonTag { |
| 26 |
typedef void (MuonTag::*Selector)(); |
| 27 |
}; |
| 28 |
|
| 29 |
void foo() |
| 30 |
{ |
| 31 |
vector<MuonTag::Selector> _selectors; |
| 32 |
_selectors.size(); |
| 33 |
} |