[Bug c++/21808] Uninformative diagnostic for name lookup for template functions
veksler at il dot ibm dot com
gcc-bugzilla@gcc.gnu.org
Sun May 29 20:37:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list