1 2 3 4 5 6 7 8 9 10 11
// { dg-do assemble } #include <complex> template<class T> class Vec { public: Vec() { data = new T; } Vec<T> split() { Vec<T> tmp; operator=(tmp); return tmp; } void operator=(const Vec<T> &v) { data = new T; } T *data; }; template class Vec<std::complex<double> >;