public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/101319] New: Missing diagnostic for argument with type parameters for assumed-type dummy
@ 2021-07-04 19:55 sandra at gcc dot gnu.org
2021-09-23 0:11 ` [Bug fortran/101319] " cvs-commit at gcc dot gnu.org
2021-10-21 21:09 ` sandra at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: sandra at gcc dot gnu.org @ 2021-07-04 19:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101319
Bug ID: 101319
Summary: Missing diagnostic for argument with type parameters
for assumed-type dummy
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: sandra at gcc dot gnu.org
Target Milestone: ---
In section 15.5.2.4 Ordinary dummy variables, the Fortran 2018 standard says:
If the actual argument is of a derived type that has type parameters,
type-bound procedures, or final subroutines, the dummy argument shall
not be assumed-type.
gfortran is giving a diagnostic for the type-bound procedures and final
subroutines cases, but not the derived type with type parameters case.
Testcase is procedures/assumed-type-dummy.f90 included in the TS29113 testsuite
posted here:
https://gcc.gnu.org/pipermail/gcc-patches/2021-July/574115.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/101319] Missing diagnostic for argument with type parameters for assumed-type dummy
2021-07-04 19:55 [Bug fortran/101319] New: Missing diagnostic for argument with type parameters for assumed-type dummy sandra at gcc dot gnu.org
@ 2021-09-23 0:11 ` cvs-commit at gcc dot gnu.org
2021-10-21 21:09 ` sandra at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-09-23 0:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101319
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Sandra Loosemore <sandra@gcc.gnu.org>:
https://gcc.gnu.org/g:5098e7077bfcace3e80144e63c81be94546ced16
commit r12-3828-g5098e7077bfcace3e80144e63c81be94546ced16
Author: Sandra Loosemore <sandra@codesourcery.com>
Date: Wed Sep 22 07:49:17 2021 -0700
Fortran: diagnostic for argument w/type parameters for assumed-type dummy
2021-09-22 Sandra Loosemore <sandra@codesourcery.com>
PR fortran/101319
gcc/fortran/
* interface.c (gfc_compare_actual_formal): Extend existing
assumed-type diagnostic to also check for argument with type
parameters.
gcc/testsuite/
* gfortran.dg/c-interop/assumed-type-dummy.f90: Remove xfail.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/101319] Missing diagnostic for argument with type parameters for assumed-type dummy
2021-07-04 19:55 [Bug fortran/101319] New: Missing diagnostic for argument with type parameters for assumed-type dummy sandra at gcc dot gnu.org
2021-09-23 0:11 ` [Bug fortran/101319] " cvs-commit at gcc dot gnu.org
@ 2021-10-21 21:09 ` sandra at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: sandra at gcc dot gnu.org @ 2021-10-21 21:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101319
sandra at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from sandra at gcc dot gnu.org ---
This has been fixed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-10-21 21:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-04 19:55 [Bug fortran/101319] New: Missing diagnostic for argument with type parameters for assumed-type dummy sandra at gcc dot gnu.org
2021-09-23 0:11 ` [Bug fortran/101319] " cvs-commit at gcc dot gnu.org
2021-10-21 21:09 ` sandra 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).