From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14444 invoked by alias); 20 Aug 2007 16:47:06 -0000 Received: (qmail 13206 invoked by uid 48); 20 Aug 2007 16:46:53 -0000 Date: Mon, 20 Aug 2007 16:47:00 -0000 Message-ID: <20070820164653.13205.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "manu at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg01409.txt.bz2 ------- Comment #18 from manu at gcc dot gnu dot org 2007-08-20 16:46 ------- When I say "constant are not propagated" I mean "the constant value of a variable" such as: int i=0; use(&i); foo(i); Here, GCC does not propagate the value of i to do foo(0). Remove the call to use and then it will. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10138