2 // { dg-options "-pedantic-errors -ansi -w" }
4 // Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 7 Jan 2001 <nathan@codesourcery.com>
7 // As of G++ 3.4, we no longer attempt to detect dependencies; the
8 // standard does not require that we do.
10 // Bug 1038. Default args on class members can produce circular dependencies.
11 // Make sure we spot them, and don't depend on a particular ordering.
15 static int Foo (int = Baz ()); // { dg-error "" } not yet been parsed
16 static int Baz (int = Foo ());