From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9278 invoked by alias); 14 Dec 2013 18:18:44 -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 9248 invoked by uid 48); 14 Dec 2013 18:18:39 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/52370] [4.7/4.8/4.9 Regression] Spurious "may be used uninitialized" warning for check of optional argument Date: Sat, 14 Dec 2013 18:18: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.7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: minor X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on short_desc everconfirmed 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-12/txt/msg01247.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52370 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-12-14 Summary|Spurious "may be used |[4.7/4.8/4.9 Regression] |uninitialized" warning for |Spurious "may be used |check of optional argument |uninitialized" warning for | |check of optional argument Ever confirmed|0 |1 --- Comment #4 from Dominique d'Humieres --- I get the warning with 4.6.4 up to trunk (r205944), but not for 4.5.4. The change occurred between revisions r182107 (2011-12-08) and r182980 (2012-01-07). > That the warning only shows up in 4.7 but not in 4.7.2 is probably due > to the patch for PR 50923. (The warning is only printed for -O1 but not > for -O2 or -O0.) The fix for PR 50923 is in the above range.