------- Comment #1 from rguenth at gcc dot gnu dot org 2010-06-22 10:57 ------- 2.95 says
t.C:19: conflicting return type specified for virtual function `class Int & Int::operator =(int)' t.C:9: overriding definition as `int & Temp<int>::operator =(int)' and EDG t.C(18): error: return type is not identical to nor covariant with return type "int &" of overridden virtual function function "Temp<T>::operator=(T) [with T=int]" Int& operator=(int a) ^ compilation aborted for t.C (code 2) -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords|error-recovery | Known to fail|4.3.5 4.4.4 4.5.0 4.6.0 |3.3.6 4.3.5 4.4.4 4.5.0 | |4.6.0 Known to work| |2.95.2 Last reconfirmed|0000-00-00 00:00:00 |2010-06-22 10:57:32 date| | Summary|ICE in cp_build_unary_op at |[4.3/4.4/4.5/4.6 Regression] |cp/typeck.c:4671 |ICE in cp_build_unary_op at | |cp/typeck.c:4671 Target Milestone|--- |4.3.6 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44628