[Bug c++/5660] dependant names involving templates & inheritance
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Wed Apr 28 17:00:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list