1 // { dg-do assemble } 2 // Make sure we can cast to a templated type, that requires a conversion by 3 // constructor, from a non-aggregate type. 4 5 // prms-id: 3524 6 7 template <class T> 8 struct ccPair { ccPairccPair9 ccPair (int i) { } 10 }; 11 foo()12void foo () 13 { 14 (ccPair<float>)1; 15 } 16