From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23963 invoked by alias); 20 Jan 2003 06:11:48 -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 23878 invoked by uid 48); 20 Jan 2003 06:11:47 -0000 Date: Mon, 20 Jan 2003 06:11:00 -0000 Message-ID: <20030120061147.23877.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, jcab@JCABs-Rumblings.com, nobody@gcc.gnu.org From: neroden@gcc.gnu.org Reply-To: neroden@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, jcab@JCABs-Rumblings.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/5763: [parser]Compiler uses the wrong type X-SW-Source: 2003-01/txt/msg01108.txt.bz2 List-Id: Synopsis: [parser]Compiler uses the wrong type State-Changed-From-To: suspended->analyzed State-Changed-By: neroden State-Changed-When: Mon Jan 20 06:11:47 2003 State-Changed-Why: Status on mainline: With the 'correct incantation', it works. With the 'template' missing, the offending line gives 'expected unqualified-id' (which is waaay too common an error, and is very unhelpful). With the 'typename' missing, it gives ice.cxx:12: error: ISO C++ forbids declaration of `iterator' with no type ice.cxx:12: error: template-id `iterator' used as a declarator With both missing, it gives ice.cxx:12: error: `iterator' specified as declarator-id ice.cxx:12: error: cannot declare member `filter >::iterator ' within `phase_2' ice.cxx:12: error: expected function-definition http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5763