From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9903 invoked by alias); 27 Jan 2002 00:16:02 -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 9884 invoked by uid 71); 27 Jan 2002 00:16:01 -0000 Date: Sat, 26 Jan 2002 16:16:00 -0000 Message-ID: <20020127001601.9883.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Dean Anderson Subject: Re: c++/5500: public typedefs in inner classes do not work Reply-To: Dean Anderson X-SW-Source: 2002-01/txt/msg00908.txt.bz2 List-Id: The following reply was made to PR c++/5500; it has been noted by GNATS. From: Dean Anderson To: Andrew Pinski Cc: , Subject: Re: c++/5500: public typedefs in inner classes do not work Date: Sat, 26 Jan 2002 19:14:16 -0500 (EST) Ok, I see: Adding the typename keyword makes the problem go away... I agree this isn't a bug, but I like the 3.1 error message much better... Thanks! --Dean On Sat, 26 Jan 2002, Andrew Pinski wrote: > In gcc 3.1 the cvs version with a date of 20020122, I get: > > In file included from x.cxx:2: > x.h:46: warning: `typename C::InnerC::const_reference' is implicitly > a typename > x.h:46: warning: implicit typename is deprecated, please see the > documentation for details > In file included from x.h:54, > from x.cxx:2: > x.inl:16: warning: `typename C::InnerC::const_reference' is > implicitly a typename > x.inl:16: warning: implicit typename is deprecated, please see the > documentation for details > x.inl:38: warning: `typename C::InnerC::const_reference' is > implicitly a typename > x.inl:38: warning: implicit typename is deprecated, please see the > documentation for details > > but it compiles with these warnings. > > Thanks, > Andrew Pinski > >