1 // PR c++/56895 2 // { dg-do compile } 3 4 void fn (int *); 5 void fn (int); 6 extern struct A { bool foo (); A bar (); } *a; 7 8 template <int> 9 void baz()10 baz () 11 { 12 fn (a->bar().foo() ? 1 : 0); 13 } 14 15 void test()16 test () 17 { 18 baz<0> (); 19 } 20