This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/5660] dependant names involving templates & inheritance
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Apr 2004 16:33:18 -0000
- Subject: [Bug c++/5660] dependant names involving templates & inheritance
- References: <20020211124602.5660.auroran@dominia.mit.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-04-28 16:33 -------
Giovanni, you're right of course. So this is one of the few
places where we don't get name lookup right.
Here's the link test:
------------
template<typename T> void f( T& aT ) {}
struct base {
void f( base& );
};
template <typename T> struct W : public T {
void g( W& w ) { f(w); }
};
int main() {
W<base> wb;
wb.g(wb);
return 0;
}
----------------
icc -Xc -ansi links this fine, gcc's call to ld is missing the function that
the compiler erroneously calls.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5660