This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21808] Uninformative diagnostic for name lookup for template functions
- From: "veksler at il dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2005 20:33:43 -0000
- Subject: [Bug c++/21808] Uninformative diagnostic for name lookup for template functions
- References: <20050529153613.21808.veksler@il.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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