gcc/testsuite/g++.dg/template/typename9.C
raw| 1 | // { dg-do compile } |
| 2 | |
| 3 | // Copyright (C) 2004 Free Software Foundation, Inc. |
| 4 | // Contributed by Nathan Sidwell 14 Dec 2004 <[email protected]> |
| 5 | |
| 6 | // PR 18981. ICE |
| 7 | // Origin: Andreas Schwab <[email protected]> |
| 8 | |
| 9 | template <class T> |
| 10 | struct tree { |
| 11 | struct iterator; |
| 12 | struct sibling_iterator { |
| 13 | friend struct tree<T>::iterator; |
| 14 | }; |
| 15 | }; |