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

Reply via email to