public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/95037] New: gfortran fails to compile a simple subroutine, issues an opaque message
@ 2020-05-10 15:35 longb at cray dot com
  2020-05-10 17:29 ` [Bug fortran/95037] " kargl at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: longb at cray dot com @ 2020-05-10 15:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95037

            Bug ID: 95037
           Summary: gfortran fails to compile a simple subroutine, issues
                    an opaque message
           Product: gcc
           Version: 9.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: longb at cray dot com
  Target Milestone: ---

> cat  test.f90
subroutine my_random_seed_v (size, put, get)
integer, optional :: size
integer, optional :: put(1)
integer, optional :: get(1)
call random_seed (size, put, get)
end subroutine my_random_seed_v

Works with Cray compiler:

> ftn -c test.f90
> module swap PrgEnv-cray PrgEnv-gnu

Fails with gfortran:

> gfortran -c test.f90

(null):0: confused by earlier errors, bailing out
> gfortran --version
GNU Fortran (GCC) 9.3.0 20200312 (Cray Inc.)
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Original user was "confused" by the message, especially since there were no
"earlier errors" output.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-19  5:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-10 15:35 [Bug fortran/95037] New: gfortran fails to compile a simple subroutine, issues an opaque message longb at cray dot com
2020-05-10 17:29 ` [Bug fortran/95037] " kargl at gcc dot gnu.org
2020-06-14 12:36 ` tkoenig at gcc dot gnu.org
2020-06-14 12:45 ` tkoenig at gcc dot gnu.org
2020-10-18 20:27 ` longb at cray dot com
2020-10-19  5:38 ` tkoenig at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).