3 // Copyright (C) 2000, 2002 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 7 Jan 2001 <nathan@codesourcery.com>
6 // As of G++ 3.4, we no longer attempt to detect dependencies; the
7 // standard does not require that we do.
9 // Bug 1038. Default args on class members can produce circular dependencies.
10 // Make sure we spot them, and don't depend on a particular ordering.
14 static int Foo (int = Baz ()); // { dg-error "" }
15 static int Baz (int = Foo ());
21 void set (const Test &arg = Test ());
26 static int Bar (int = Foo (1));
27 static int Foo (int = Baz ()); // { dg-error "" }
28 static int Baz (int = Foo (1));