From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2229 invoked by alias); 9 Jul 2005 00:00:56 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 2214 invoked by uid 22791); 9 Jul 2005 00:00:53 -0000 Received: from iecn.u-nancy.fr (HELO antares.iecn.u-nancy.fr) (193.50.42.6) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 09 Jul 2005 00:00:53 +0000 Received: by antares.iecn.u-nancy.fr (Postfix, from userid 15) id D38F01CF289; Sat, 9 Jul 2005 02:00:50 +0200 (CEST) Received: from epimethee.iecn.u-nancy.fr (cartan.iecn.u-nancy.fr [193.50.42.9]) by antares.iecn.u-nancy.fr (Postfix) with ESMTP id A9C3F1CF242 for ; Sat, 9 Jul 2005 02:00:49 +0200 (CEST) Received: by epimethee.iecn.u-nancy.fr (Postfix, from userid 31781) id DD8096B905; Sat, 9 Jul 2005 01:52:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by epimethee.iecn.u-nancy.fr (Postfix) with ESMTP id DAC616B901 for ; Sat, 9 Jul 2005 01:52:58 +0200 (CEST) Date: Sat, 09 Jul 2005 00:00:00 -0000 From: Vincent Torri To: gcc-help@gcc.gnu.org Subject: Re: ice with a big template In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-07/txt/msg00096.txt.bz2 Hello again, With : typedef typename adaptor::adaptor::type> > my_type; return my_type(functor); there is no compilation problem. maybe there is a gcc bug. Vincent Torri On Fri, 8 Jul 2005, Vincent Torri wrote: > > Hello, > > i'm compiling a program with gcc 4.1.0 (not 4.0.1, it's not a mistake ;), > but i've also tried gcc 4.0.0 and there's the ice too), and gcc complains > about that part of the program : > > template > typename adaptor::adaptor adaptor::decayer::type> > > adapt(Functor const& functor, FunctorMethodPtr) > { > return typename adaptor::adaptor typename adaptor::decayer::type> >(functor); > } > > The error reported by gcc is: > > ../../src/functions/../parser/adapt.h: In function > 'avs::parser::adaptor::adaptor typename avs::parser::adaptor::decayer::type>, typename > avs::parser::adaptor::caller avs::parser::adaptor::decayer::type>::ResultType> > avs::parser::detail::adapt(const Functor&, FunctorMethodPtr)': > ../../src/functions/../parser/adapt.h:50: internal compiler error: tree > check: expected class 'type', have 'declaration' (namespace_decl) in > dependent_type_p, at cp/pt.c:12020 > > line 50 is the line where the 'return' is. > > I'm not skilled enough to know if it's a problem with gcc or with the > program. > > I would also like to point out that there is no problem with gcc 3.3.4. > > Does someone see any problem in the code above, or a workaround ? > > Thank you > > Vincent Torri >