From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24900 invoked by alias); 10 May 2003 14:36: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 24850 invoked by uid 48); 10 May 2003 14:36:02 -0000 Date: Sat, 10 May 2003 14:36:00 -0000 Message-ID: <20030510143602.24849.qmail@sources.redhat.com> To: cs@plesk.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nathan@gcc.gnu.org, nobody@gcc.gnu.org From: nathan@gcc.gnu.org Reply-To: nathan@gcc.gnu.org, cs@plesk.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nathan@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/5605: [2003-05-06] name of caught object redeclared in clause [3.3.2]/3 X-SW-Source: 2003-05/txt/msg00964.txt.bz2 List-Id: Old Synopsis: [2003-05-06] Wrong constructor is called when anonymous object is created in catch block. New Synopsis: [2003-05-06] name of caught object redeclared in clause [3.3.2]/3 Responsible-Changed-From-To: nathan->unassigned Responsible-Changed-By: nathan Responsible-Changed-When: Sat May 10 14:36:02 2003 Responsible-Changed-Why: icc is correct. 1) 'A (e)' is a declaration of variable 'e' -- the grammar is ambiguous and the std rule in favour of a declaration rather than an expression 2) the scope of this new 'e' is the same as that of the caught object named 'e'. So an error should be issues. [3.3.2]/3 says so http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5605