From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14312 invoked by alias); 21 Jan 2009 22:19:41 -0000 Received: (qmail 14285 invoked by uid 48); 21 Jan 2009 22:19:32 -0000 Date: Wed, 21 Jan 2009 22:19:00 -0000 Message-ID: <20090121221932.14284.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/38851] [4.3 regression] Compiler warns about uninitialized variable that is an object with a constructor In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bkoz 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: 2009-01/txt/msg02322.txt.bz2 ------- Comment #3 from bkoz at gcc dot gnu dot org 2009-01-21 22:19 ------- Confirmed for s390x. This is causing the following s390x libstdc++ testsuite failures, and is thus a regression from 4.3. As far as I can tell these warnings are spurious. http://gcc.gnu.org/ml/gcc-testresults/2009-01/msg02102.html And from the libstdc++.log file: FAIL: 27_io/ios_base/types/fmtflags/bitmask_operators.cc (test for excess errors) Excess errors: /build-extralong/BUILD/gcc/libstdc++-v3/testsuite/util/testsuite_common_types.h:401: warning: 'a' is used uninitialized in this function /build-extralong/BUILD/gcc/libstdc++-v3/testsuite/util/testsuite_common_types.h:401: warning: 'b' is used uninitialized in this function /build-extralong/BUILD/gcc/libstdc++-v3/testsuite/util/testsuite_common_types.h:413: warning: 'b' is used uninitialized in this function FAIL: 27_io/ios_base/types/iostate/bitmask_operators.cc (test for excess errors) /build-extralong/BUILD/gcc/libstdc++-v3/testsuite/util/testsuite_common_types.h:401: warning: 'a' is used uninitialized in this function /build-extralong/BUILD/gcc/libstdc++-v3/testsuite/util/testsuite_common_types.h:401: warning: 'b' is used uninitialized in this function /build-extralong/BUILD/gcc/libstdc++-v3/testsuite/util/testsuite_common_types.h:413: warning: 'b' is used uninitialized in this function FAIL: 27_io/ios_base/types/openmode/bitmask_operators.cc (test for excess errors) /build-extralong/BUILD/gcc/libstdc++-v3/testsuite/util/testsuite_common_types.h:401: warning: 'a' is used uninitialized in this function /build-extralong/BUILD/gcc/libstdc++-v3/testsuite/util/testsuite_common_types.h:401: warning: 'b' is used uninitialized in this function /build-extralong/BUILD/gcc/libstdc++-v3/testsuite/util/testsuite_common_types.h:413: warning: 'b' is used uninitialized in this function -- bkoz at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bkoz at gcc dot gnu dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-01-21 22:19:31 date| | Summary|Compiler warns about |[4.3 regression] Compiler |uninitialized variable that |warns about uninitialized |is an object with a |variable that is an object |constructor |with a constructor http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38851