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++/5660] dependant names involving templates & inheritance


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


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