From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 688 invoked by alias); 16 Aug 2002 20: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 668 invoked by uid 71); 16 Aug 2002 20:36:02 -0000 Resent-Date: 16 Aug 2002 20:36:02 -0000 Resent-Message-ID: <20020816203602.667.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, Sylvain.Pion@sophia.inria.fr Resent-Reply-To: gcc-gnats@gcc.gnu.org, Sylvain.Pion@sophia.inria.fr Received: (qmail 29253 invoked by uid 61); 16 Aug 2002 20:27:57 -0000 Message-Id: <20020816202757.29250.qmail@sources.redhat.com> Date: Fri, 16 Aug 2002 13:46:00 -0000 From: Sylvain.Pion@sophia.inria.fr Reply-To: Sylvain.Pion@sophia.inria.fr To: gcc-gnats@gcc.gnu.org Cc: Sylvain.Pion@sophia.inria.fr X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: Sylvain.Pion@sophia.inria.fr Subject: c++/7616: New warning request X-SW-Source: 2002-08/txt/msg00336.txt.bz2 List-Id: >Number: 7616 >Category: c++ >Synopsis: New warning request >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: change-request >Submitter-Id: net >Arrival-Date: Fri Aug 16 13:36:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Sylvain Pion >Release: 3.3 >Organization: >Environment: Reading specs from ./gcc/Linux_trunc/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.3/specs Configured with: /u/zosma/0/prisme/spion/gcc/gcc_trunc/configure --disable-shared --disable-nls --enable-languages=c++ --prefix=/u/zosma/0/prisme/spion/gcc/Linux_trunc --with-gnu-as --with-gnu-ld --with-as=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/as --with-ld=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/ld Thread model: posix gcc version 3.3 20020813 (experimental) >Description: Compiling the code below with the SunPRO compiler gives the following warning : "warning_request.cpp", line 6: Warning: i hides A::i. 1 Warning(s) detected. G++ doesn't warn for this case, i.e. when the name of an argument of a member function hides a data member. I think it would be nice to support it. >How-To-Repeat: struct A { int i; void f(int i) const {} }; >Fix: >Release-Note: >Audit-Trail: >Unformatted: