public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/101320] New: Bind(C): Missing diagnostic for constraint C1557 on allocatable/pointer arguments
@ 2021-07-05 4:03 sandra at gcc dot gnu.org
2021-09-23 23:45 ` [Bug fortran/101320] " cvs-commit at gcc dot gnu.org
2021-10-21 21:10 ` sandra at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: sandra at gcc dot gnu.org @ 2021-07-05 4:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101320
Bug ID: 101320
Summary: Bind(C): Missing diagnostic for constraint C1557 on
allocatable/pointer arguments
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 the WIP TS29113 testsuite posted here
https://gcc.gnu.org/pipermail/gcc-patches/2021-July/574115.html
the testcase types/c516.f90 tests the constraint labeled C516 in the TS 29113
document and C1557 in the 2018 standard:
"If proc-language-binding-spec is specified for a procedure, it shall not have
a default-initialized dummy argument with the ALLOCATABLE or POINTER
attribute."
Neither of the two places in that example that are expecting a diagnostic are
producing one.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/101320] Bind(C): Missing diagnostic for constraint C1557 on allocatable/pointer arguments
2021-07-05 4:03 [Bug fortran/101320] New: Bind(C): Missing diagnostic for constraint C1557 on allocatable/pointer arguments sandra at gcc dot gnu.org
@ 2021-09-23 23:45 ` cvs-commit at gcc dot gnu.org
2021-10-21 21:10 ` 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 23:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101320
--- 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:2646d0e06b170569be1da28fce1d6e2f03a15f60
commit r12-3871-g2646d0e06b170569be1da28fce1d6e2f03a15f60
Author: Sandra Loosemore <sandra@codesourcery.com>
Date: Thu Sep 23 08:03:52 2021 -0700
Fortran: Diagnose default-initialized pointer/allocatable dummies
TS29113 changed what was then C516 in the 2010 Fortran standard (now
C1557 in F2018) from disallowing all of pointer, allocatable, and
optional attributes on dummy arguments to BIND(C) functions, to
disallowing only pointer/allocatable with default-initialization.
gfortran was previously failing to diagnose violations of this
constraint.
2021-09-23 Sandra Loosemore <sandra@codesourcery.com>
PR fortran/101320
gcc/fortran/
* decl.c (gfc_verify_c_interop_param): Handle F2018 C1557,
aka TS29113 C516.
gcc/testsuite/
* gfortran.dg/c-interop/c516.f90: Remove xfails. Add more
tests.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/101320] Bind(C): Missing diagnostic for constraint C1557 on allocatable/pointer arguments
2021-07-05 4:03 [Bug fortran/101320] New: Bind(C): Missing diagnostic for constraint C1557 on allocatable/pointer arguments sandra at gcc dot gnu.org
2021-09-23 23:45 ` [Bug fortran/101320] " cvs-commit at gcc dot gnu.org
@ 2021-10-21 21:10 ` 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:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101320
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:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 4:03 [Bug fortran/101320] New: Bind(C): Missing diagnostic for constraint C1557 on allocatable/pointer arguments sandra at gcc dot gnu.org
2021-09-23 23:45 ` [Bug fortran/101320] " cvs-commit at gcc dot gnu.org
2021-10-21 21:10 ` 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).