From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32563 invoked by alias); 26 May 2003 16:38: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 32547 invoked by alias); 26 May 2003 16:38:24 -0000 Date: Mon, 26 May 2003 16:47:00 -0000 Message-ID: <20030526163824.32546.qmail@sources.redhat.com> From: "h.b.furuseth@usit.uio.no" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030318174600.10138.h.b.furuseth@usit.uio.no> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug other/10138] -Wuninitialized could catch uninitialized arrays X-Bugzilla-Reason: CC X-SW-Source: 2003-05/txt/msg02917.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10138 ------- Additional Comments From h.b.furuseth@usit.uio.no 2003-05-26 16:38 ------- Subject: Re: [Bug other/10138] -Wuninitialized could catch uninitialized arrays pinskia@physics.uc.edu writes: > Change title to reflect real bug. Oops, I have reported several suggestions which should be split up: 1) It could report use of uninitialized arrays as you say, 2) it could report pointers to uninitialized variables passed as const* arguments - as I said, that's almost always an error: void use(const int *); void foo(void) { int i; use(&i); } 3) Finally it could report the combination, as in my original example. ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.