From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5541 invoked by alias); 28 Aug 2015 17:31:59 -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 5494 invoked by uid 48); 28 Aug 2015 17:31:55 -0000 From: "urbanjost at comcast dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/67388] New: cannot compile function with SAVE in it with gfortran option -finit-real Date: Fri, 28 Aug 2015 17:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: urbanjost at comcast dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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: 2015-08/txt/msg01963.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67388 Bug ID: 67388 Summary: cannot compile function with SAVE in it with gfortran option -finit-real Product: gcc Version: 4.9.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: urbanjost at comcast dot net Target Milestone: --- Created attachment 36264 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36264&action=edit test code, test script and output If compile fortran function with the -finit-real=nan option and the function has a SAVE in it I get the following error for the returned RESULT: \ FUNCTION buggy(p,t) RESULT(buggy_result) 1 Error: Function result 'buggy_result' at (1) cannot have an initializer