6 template<const A* a> class C {};
7 template<const B* b> class D {};
8 template<B* b> class E {};
10 template<const B* b> void f(D<b> &, C<static_cast<const A*>(b)> &) {} // { dg-error "" }
11 template<const B* b> void g(D<b> &, E<const_cast<B*>(b)> &) {} // { dg-error "" "" { target { ! c++11 } } }
17 C<static_cast<const A*>(&b)> c; // { dg-error "" }
19 E<const_cast<B*>(&b)> e; // { dg-error "" "" { target { ! c++11 } } }
20 f(d, c); // { dg-error "" "" { target c++11 } }