From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12380 invoked by alias); 26 Aug 2002 13:56:03 -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 12321 invoked by uid 71); 26 Aug 2002 13:56:01 -0000 Resent-Date: 26 Aug 2002 13:56:01 -0000 Resent-Message-ID: <20020826135601.12320.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, zyzstar@uid0.sk Received: (qmail 5630 invoked by uid 61); 26 Aug 2002 13:48:57 -0000 Message-Id: <20020826134857.5629.qmail@sources.redhat.com> Date: Mon, 26 Aug 2002 06:56:00 -0000 From: zyzstar@uid0.sk Reply-To: zyzstar@uid0.sk To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/7724: template descendant does not see typedefs of tmpl. ancestor X-SW-Source: 2002-08/txt/msg00551.txt.bz2 List-Id: >Number: 7724 >Category: c++ >Synopsis: template descendant does not see typedefs of tmpl. ancestor >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Mon Aug 26 06:56:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: zyzstar@uid0.sk >Release: g++-3.1.1 >Organization: >Environment: >Description: template class A { public: typedef T_ arg_type; A(arg_type i) : mi(i) {} ~A() {} private: arg_type mi; }; template class B : public A { public: // typedef typename A::arg_type arg_type; B(arg_type i) : A(i) {} ~B() {} }; int main() { B b(1); return 0; } In g++-3.1.1 I have to uncomment the typedef in the B class. This is a problem only if B is a template class. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: