1 // PR c++/69736 2 // { dg-do compile { target c++14 } } 3 4 void fn1(bool = true) 5 { 6 (fn1)(); 7 } 8 9 template <typename T> 10 void fn2(T a = true) 11 { 12 (fn1)(); 13 } 14 foo()15void foo () 16 { 17 (fn2<bool>)(); 18 } 19 20 struct X 21 { 22 static void fn3(bool = true) 23 { 24 (X::fn3)(); 25 } 26 27 void fn4(bool = true) 28 { 29 (X::fn4)(); 30 } 31 }; 32