------- Additional Comments From veksler at il dot ibm dot com 2005-05-29 20:33 ------- I disagree. 1. Because it is a template the "correct" error is supressed. 2. It passes with gcc-3.3, but fails with gcc-3.4.3
This is unlike your example: template <class T> struct A { T t; }; // Swap following 2 functions to get conforming C++ template <int i> struct B {static const int t = i;}; template<class T> void foo1(const A<T>& data); void foo(const A<int>& data) { foo1((int)data.t); } void foo1(int data); Which works neither with gcc-3.3 nor with gcc-3.4.4 -- What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|DUPLICATE | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21808