From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29606 invoked by alias); 15 Mar 2006 10:43:00 -0000 Received: (qmail 29587 invoked by uid 48); 15 Mar 2006 10:42:58 -0000 Date: Wed, 15 Mar 2006 10:43:00 -0000 Message-ID: <20060315104258.29586.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/13717] duplicated parameter name not caught ? In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dcb314 at hotmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-03/txt/msg01557.txt.bz2 List-Id: ------- Comment #4 from dcb314 at hotmail dot com 2006-03-15 10:42 ------- (In reply to comment #0) > The one liner > > void f( int fred, char * fred); > > is IMHO illegal code because fred is the name of two parameters. I just checked gcc 4.2 and it is broken there as well. Even adding flags -Wall -ansi -pedantic doesn't help -- dcb314 at hotmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcb314 at hotmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13717