// { dg-do compile } // Copyright (C) 2003 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 3 Jul 2003 // PR c++ 9162. default args got left unprocessed struct S { friend int foo (int = 100); }; int i = foo (); struct R { template R (T, int = 0); }; int Foo () { R s (1); } template struct Q { int Foo (T, int = 0); }; int Foo (Q *s) { s->Foo (1); }