1 // PR c++/71822 2 // { dg-do compile } 3 4 int bar (int); 5 6 template <typename T> 7 struct A 8 { 9 explicit A (int x = bar (sizeof (T))); 10 }; 11 12 struct B 13 { 14 A <int> b[2]; 15 }; 16 17 void baz()18 baz () 19 { 20 B b; 21 } 22