public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/97491] New: Wrong restriction for VALUE arguments of pure procedures
@ 2020-10-19 12:40 tkoenig at gcc dot gnu.org
  2020-10-19 20:26 ` [Bug fortran/97491] " anlauf at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2020-10-19 12:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97491
           Summary: Wrong restriction for VALUE arguments of pure
                    procedures
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tkoenig at gcc dot gnu.org
  Target Milestone: ---

$ cat pure.f90 
pure function foo(x) result (ret)
  integer :: ret
  integer, value :: x
  x = x / 2
  ret = x
end function foo
$ gfortran pure.f90 
pure.f90:4:2:

    4 |   x = x / 2
      |  1
Error: Variable 'x' cannot appear in a variable definition context (assignment)
at (1) in PURE procedure

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

end of thread, other threads:[~2021-03-20 20:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-19 12:40 [Bug fortran/97491] New: Wrong restriction for VALUE arguments of pure procedures tkoenig at gcc dot gnu.org
2020-10-19 20:26 ` [Bug fortran/97491] " anlauf at gcc dot gnu.org
2020-10-24 21:00 ` anlauf at gcc dot gnu.org
2020-10-26 20:59 ` anlauf at gcc dot gnu.org
2020-10-27 19:40 ` cvs-commit at gcc dot gnu.org
2020-10-27 19:44 ` anlauf at gcc dot gnu.org
2020-11-03 22:01 ` cvs-commit at gcc dot gnu.org
2020-11-03 22:04 ` anlauf at gcc dot gnu.org
2021-03-16 13:16 ` burnus at gcc dot gnu.org
2021-03-20 20:22 ` cvs-commit 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).