Index: list.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/list.h,v
retrieving revision 1.31
diff -u -r1.31 list.h
--- list.h	18 Jan 2006 17:39:34 -0000	1.31
+++ list.h	21 Jan 2006 07:47:59 -0000
@@ -91,7 +91,11 @@
 		}
 		T2& operator*() const {
 			assert(_node);
+#if (__GNUC__ == 2) && (__GNUC_MINOR__ >= 95)
+			return static_cast<List<T>::Node<T2> *>(_node)->_data;
+#else
 			return static_cast<Node<T2>*>(_node)->_data;
+#endif
 		}
 		T2* operator->() const {
 			return &(operator*());
