This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21808] Uninformative diagnostic for name lookup for template functions


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]