From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16792 invoked by alias); 12 May 2006 13:42:18 -0000 Received: (qmail 16741 invoked by uid 48); 12 May 2006 13:42:08 -0000 Date: Fri, 12 May 2006 13:42:00 -0000 Message-ID: <20060512134208.16740.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/17506] [4.0/4.1/4.2 regression] warning about uninitialized variable points to wrong location In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" 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-05/txt/msg01205.txt.bz2 List-Id: ------- Comment #23 from rguenth at gcc dot gnu dot org 2006-05-12 13:42 ------- The patch from comment #14 is not really useful as it f.i. warns for int sink; void bar() { int j; sink = j; } t.c: In function 'bar': t.c:5: warning: 'j' is used uninitialized in this function t.c:4: note: 'j' was declared here -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506