From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28441 invoked by alias); 28 Apr 2004 16:33:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28433 invoked by uid 48); 28 Apr 2004 16:33:18 -0000 Date: Wed, 28 Apr 2004 17:00:00 -0000 Message-ID: <20040428163318.28432.qmail@sources.redhat.com> From: "bangerth at dealii dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20020211124602.5660.auroran@dominia.mit.edu> References: <20020211124602.5660.auroran@dominia.mit.edu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/5660] dependant names involving templates & inheritance X-Bugzilla-Reason: CC X-SW-Source: 2004-04/txt/msg02762.txt.bz2 List-Id: ------- 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 void f( T& aT ) {} struct base { void f( base& ); }; template struct W : public T { void g( W& w ) { f(w); } }; int main() { W 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