public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/104585] New: incorrect error for dummy arguments with both VALUE and DIMENSION attributes
@ 2022-02-17 19:33 a.shahmoradi at gmail dot com
2022-02-17 20:03 ` [Bug fortran/104585] " anlauf at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: a.shahmoradi at gmail dot com @ 2022-02-17 19:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104585
Bug ID: 104585
Summary: incorrect error for dummy arguments with both VALUE
and DIMENSION attributes
Product: gcc
Version: og11 (devel/omp/gcc-11)
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: a.shahmoradi at gmail dot com
Target Milestone: ---
The following interface conforms to Fortran 2008/2018 standards but is not
recognized by gfortran, which seems to still follow the rules of Fortran2003 in
this regard.
```
interface
function test(Matrix) result(res)
real, value :: Matrix(:,:) ! valid F2008 (although invalid F2003).
real :: res
end function
end interface
end
```
This enhancement requires lifting an existing restriction to allow `value`
attribute with array-like dummy arguments in agreement with F2008/F2018
standards.
The additional relevant discussion is also available in Fortran Discourse:
https://fortran-lang.discourse.group/t/value-with-dimension-attribute-conflict/2808
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/104585] incorrect error for dummy arguments with both VALUE and DIMENSION attributes
2022-02-17 19:33 [Bug fortran/104585] New: incorrect error for dummy arguments with both VALUE and DIMENSION attributes a.shahmoradi at gmail dot com
@ 2022-02-17 20:03 ` anlauf at gcc dot gnu.org
2024-04-04 19:51 ` longb at cray dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-02-17 20:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104585
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from anlauf at gcc dot gnu.org ---
Duplicate.
*** This bug has been marked as a duplicate of bug 102369 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/104585] incorrect error for dummy arguments with both VALUE and DIMENSION attributes
2022-02-17 19:33 [Bug fortran/104585] New: incorrect error for dummy arguments with both VALUE and DIMENSION attributes a.shahmoradi at gmail dot com
2022-02-17 20:03 ` [Bug fortran/104585] " anlauf at gcc dot gnu.org
@ 2024-04-04 19:51 ` longb at cray dot com
2024-04-04 19:58 ` anlauf at gcc dot gnu.org
2024-04-10 17:41 ` longb at cray dot com
3 siblings, 0 replies; 5+ messages in thread
From: longb at cray dot com @ 2024-04-04 19:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104585
Bill Long <longb at cray dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |longb at cray dot com
--- Comment #2 from Bill Long <longb at cray dot com> ---
Bug 102369 was closed as a duplicate of THIS bug.
Has this been fixed in a more recent version of gfortran?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/104585] incorrect error for dummy arguments with both VALUE and DIMENSION attributes
2022-02-17 19:33 [Bug fortran/104585] New: incorrect error for dummy arguments with both VALUE and DIMENSION attributes a.shahmoradi at gmail dot com
2022-02-17 20:03 ` [Bug fortran/104585] " anlauf at gcc dot gnu.org
2024-04-04 19:51 ` longb at cray dot com
@ 2024-04-04 19:58 ` anlauf at gcc dot gnu.org
2024-04-10 17:41 ` longb at cray dot com
3 siblings, 0 replies; 5+ messages in thread
From: anlauf at gcc dot gnu.org @ 2024-04-04 19:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104585
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
--- Comment #3 from anlauf at gcc dot gnu.org ---
(In reply to Bill Long from comment #2)
> Bug 102369 was closed as a duplicate of THIS bug.
>
> Has this been fixed in a more recent version of gfortran?
No. We need only one entry for a bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/104585] incorrect error for dummy arguments with both VALUE and DIMENSION attributes
2022-02-17 19:33 [Bug fortran/104585] New: incorrect error for dummy arguments with both VALUE and DIMENSION attributes a.shahmoradi at gmail dot com
` (2 preceding siblings ...)
2024-04-04 19:58 ` anlauf at gcc dot gnu.org
@ 2024-04-10 17:41 ` longb at cray dot com
3 siblings, 0 replies; 5+ messages in thread
From: longb at cray dot com @ 2024-04-10 17:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104585
--- Comment #4 from Bill Long <longb at cray dot com> ---
Any prediction for this one? (I realize you still have F2018 an F2023 to get
through.)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-04-10 17:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-17 19:33 [Bug fortran/104585] New: incorrect error for dummy arguments with both VALUE and DIMENSION attributes a.shahmoradi at gmail dot com
2022-02-17 20:03 ` [Bug fortran/104585] " anlauf at gcc dot gnu.org
2024-04-04 19:51 ` longb at cray dot com
2024-04-04 19:58 ` anlauf at gcc dot gnu.org
2024-04-10 17:41 ` longb at cray dot com
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).