From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17671 invoked by alias); 25 Aug 2013 13:58:17 -0000 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 Received: (qmail 17559 invoked by uid 48); 25 Aug 2013 13:58:16 -0000 From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/13615] -Wuninitialized produces wrong error message for characters Date: Sun, 25 Aug 2013 13:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: minor X-Bugzilla-Who: mikael at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg01275.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13615 Mikael Morin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED CC| |mikael at gcc dot gnu.org Resolution|--- |FIXED --- Comment #13 from Mikael Morin --- gfortran outputs with the original testcase: $ gfortran comment_0.f -O -Wall comment_0.f: In function 'warn_integer': comment_0.f:17:0: warning: 'a' is used uninitialized in this function [-Wuninitialized] comment_0.f: In function 'warn_character': comment_0.f:31:0: warning: 'c[1]{lb: 1 sz: 1}' is used uninitialized in this function [-Wuninitialized] -Wall is necessary to trigger the warning, but now 'c' is correctly diagnosed as unitialized. Closing as FIXED.