From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5937 invoked by alias); 19 May 2004 03:12:10 -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 5918 invoked by uid 48); 19 May 2004 03:12:09 -0000 Date: Wed, 19 May 2004 20:22:00 -0000 Message-ID: <20040519031209.5917.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040519030420.15534.igodard@pacbell.net> References: <20040519030420.15534.igodard@pacbell.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/15534] Fails to inherit types from base class X-Bugzilla-Reason: CC X-SW-Source: 2004-05/txt/msg02092.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-19 03:12 ------- This is equivent to: template class A { typedef int t; }; template class B: A { typedef t t1; }; Which is invalid as t is not dependent so it needs to be declare not in the subclasses. The fix would be to declare t1 as "typedef A::t t1;" Also one the mainline I get the following note: pr15534.ii:31253: error: `size_type' does not name a type pr15534.ii:31253: note: (perhaps `typename std::allocator<_CharT>::size_type' was intended) -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15534