From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24521 invoked by alias); 23 Feb 2003 19:36:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 24483 invoked by uid 71); 23 Feb 2003 19:36:00 -0000 Resent-Date: 23 Feb 2003 19:36:00 -0000 Resent-Message-ID: <20030223193600.24480.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, dimitri@sources.redhat.com, at@sources.redhat.com, trolltech@sources.redhat.com, com@sources.redhat.com Received: (qmail 24250 invoked by uid 48); 23 Feb 2003 19:34:01 -0000 Message-Id: <20030223193401.24249.qmail@sources.redhat.com> Date: Sun, 23 Feb 2003 19:36:00 -0000 From: dimitri@sources.redhat.com, at@sources.redhat.com, trolltech@sources.redhat.com, com@sources.redhat.com Reply-To: dimitri@sources.redhat.com, at@sources.redhat.com, trolltech@sources.redhat.com, com@sources.redhat.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/9819: name lookup: base class of template depends on a template-parameter X-SW-Source: 2003-02/txt/msg01170.txt.bz2 List-Id: >Number: 9819 >Category: c++ >Synopsis: name lookup: base class of template depends on a template-parameter >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Sun Feb 23 19:36:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Dimitri >Release: gcc-3.2.1 >Organization: >Environment: $ uname -srvmi SunOS 5.8 Generic sun4u SUNW,Ultra-5_10 >Description: The attached program should print: $ ./foo now in ::remove() $ For what it's worth this program compiled with a recent version of the Intel C++ compiler does print that. See section 14.6.2 paragraphs 3-4 of the C++ standard for more details. Instead when compiled with gcc-3.2.1 it prints: $ ./foo now in Base::remove() $ >How-To-Repeat: Build and run the attached source. >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="foo.cc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="foo.cc" I2luY2x1ZGUgPHN0ZGlvLmg+CgoKdm9pZCByZW1vdmUoKSB7CiAgICBwcmludGYoIm5vdyBpbiA6 OnJlbW92ZSgpXG4iKTsKfQoKCnRlbXBsYXRlIDxjbGFzcyBUPgpjbGFzcyBCYXNlCnsKcHVibGlj OgogICAgdm9pZCByZW1vdmUoKSB7IHByaW50Zigibm93IGluIEJhc2U8VD46OnJlbW92ZSgpXG4i KTsgfQp9OwoKCnRlbXBsYXRlIDxjbGFzcyBUPgpjbGFzcyBEZXJpdmVkIDogcHVibGljIEJhc2U8 VD4KewpwdWJsaWM6CiAgICB2b2lkIGJhcigpIHsgcmVtb3ZlKCk7IH0KfTsKCgppbnQgbWFpbigp IHsKICAgIERlcml2ZWQ8aW50PiBmb287CiAgICBmb28uYmFyKCk7Cn0K