1// { dg-do compile } 2 3// Copyright (C) 2004 Free Software Foundation, Inc. 4// Contributed by Nathan Sidwell 14 Dec 2004 <nathan@codesourcery.com> 5 6// PR 18981. ICE 7// Origin: Andreas Schwab <schwab@suse.de> 8 9template <class T> 10struct tree { 11 struct iterator; 12 struct sibling_iterator { 13 friend struct tree<T>::iterator; 14 }; 15}; 16