1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// { dg-do compile } // { dg-options "-std=gnu++0x" } template<typename T> struct list {}; template<typename T> struct vector { operator T() const; }; void f() { vector<vector<int>> v; const vector<int> vi = static_cast<vector<int>>(v); }