------- Comment #3 from rguenth at gcc dot gnu dot org 2008-01-04 09:35 ------- Right. For the explicit instantiation
template class X<int>; you get the error then: t.C: In constructor 'X<T>::X(const X<T>&&) [with T = int]': t.C:20: instantiated from here t.C:6: error: passing 'const X<int>' as 'this' argument of 'int X<T>::f() [with T = int]' discards qualifiers -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34666