1// { dg-do assemble  }
2struct X {
3  void f (int = 4, char = 'r');	// { dg-error "previous specification" }
4  void g (int = 4, char = 'r');	// { dg-error "previous specification" }
5};
6
7void
8X::f (int i = 4, char x = 'r') // { dg-error "default argument" }
9{ }
10
11void
12X::g (int i = 9, char x = 's') // { dg-error "default argument" }
13{ }
14