From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9101 invoked by alias); 24 Nov 2004 14:50:12 -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 9062 invoked from network); 24 Nov 2004 14:50:06 -0000 Received: from unknown (HELO psmtp.com) (64.18.1.216) by sourceware.org with SMTP; 24 Nov 2004 14:50:06 -0000 Received: from source ([193.95.148.142]) by exprod6ob6.obsmtp.com ([64.18.5.12]) with SMTP; Wed, 24 Nov 2004 06:48:19 PST Received: from inner-relay-3.corp.adobe.com (inner-relay-3.sea.adobe.com [153.32.251.51]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id iAOEtpTG013641; Wed, 24 Nov 2004 06:55:51 -0800 (PST) Received: from iplan-mn (iplan-mn.corp.adobe.com [130.248.25.5]) by inner-relay-3.corp.adobe.com (8.12.9/8.12.9) with ESMTP id iAOEnp0v019088; Wed, 24 Nov 2004 06:49:51 -0800 (PST) Received: from mn-eljay-a51m.adobe.com ([130.248.178.83]) by iplan-mn.corp.adobe.com (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0I7O00K66UJ18D@iplan-mn.corp.adobe.com>; Wed, 24 Nov 2004 08:49:50 -0600 (CST) Date: Wed, 24 Nov 2004 14:50:00 -0000 From: Eljay Love-Jensen Subject: Re: STL iterator problem In-reply-to: <41A4769B.7090403@gmx.ch> To: jlh , gcc-help@gcc.gnu.org Message-id: <6.2.0.14.2.20041124084602.02307e20@iplan-mn.corp.adobe.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <20041124082827.50729.qmail@web25206.mail.ukl.yahoo.com> <41A4769B.7090403@gmx.ch> X-SW-Source: 2004-11/txt/msg00172.txt.bz2 Hi jlh, >But still I don't get why this is wrong. Is only because the compiler can't tell whether it's a typename or something else at parse time? Correct, compilers are not allowed to ASSUME (as per ISO 14882) that it is a typename. Compilers that do make that ASSUMPTION are in violation of ISO 14882. (Which is why it is wrong.) GCC works hard to be compliant. EDG is often lauded as a very, very compliant compiler (even implementing the dusty-hard-to-reach ISO 14882 items). MSVC comes up short in this regard. I'm out of experience with Metrowerks or Borland these days, but I have fond memories of them. HTH, --Eljay