From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21425 invoked by alias); 1 Sep 2005 15:57:24 -0000 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 Received: (qmail 21404 invoked by uid 48); 1 Sep 2005 15:57:18 -0000 Date: Thu, 01 Sep 2005 15:57:00 -0000 From: "benoit dot hudson at gmail dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20050901155714.23679.benoit.hudson@gmail.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/23679] New: c++ "is used uninitialized" warning on arrays hard to read X-Bugzilla-Reason: CC X-SW-Source: 2005-09/txt/msg00106.txt.bz2 List-Id: cat > foo.c << EOF int main() { int f[2]; f[0] = 4; return f[1]; } EOF ln -s foo.c foo.cpp gcc foo.c -Wall -O2 g++ foo.cpp -Wall -O2 In C, the warning is "foo.c:2: warning: 'f[1]' is used uninitialized in this function" In C++, the warning is "foo.cpp:2: warning: 'f$1' is used uninitialized in this function" Minor bug with perhaps a minor fix. -- Summary: c++ "is used uninitialized" warning on arrays hard to read Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: minor Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: benoit dot hudson at gmail dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23679