public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] fortran: Fix specification checks [PR111781]
@ 2024-03-17 16:57 Mikael Morin
  2024-03-17 16:57 ` [PATCH v2 1/2] testsuite: Declare fortran array bound variables Mikael Morin
  2024-03-17 16:57 ` [PATCH v2 2/2] fortran: Fix specification expression error with dummy procedures [PR111781] Mikael Morin
  0 siblings, 2 replies; 5+ messages in thread
From: Mikael Morin @ 2024-03-17 16:57 UTC (permalink / raw)
  To: fortran, gcc-patches

Meh, the first version contained out-of-date patches.

these patches correct diagnostics dealing with variables in specification
expressions.
The first patch is a testsuite change, which fixes invalid specification
expressions that the second patch would diagnose.
The second patch removes a spurious diagnostic when a dummy procedure is
involved, and enables more valid ones, as visible in the testcases from the
first patch.

The patch is not completely trivial, and fix what is not really a regression,
so it is more for stage1, I think.

Tested for regression on x86_64-pc-linux-gnu.  Ok for master when stage1
opens?

Mikael


v1 -> v2 changes:

  - Fix condition guarding sym->result access.


Mikael Morin (2):
  testsuite: Declare fortran array bound variables
  fortran: Fix specification expression error with dummy procedures
    [PR111781]

 gcc/fortran/expr.cc                           |  8 +-
 gcc/fortran/gfortran.h                        |  4 +-
 gcc/fortran/resolve.cc                        | 77 +++++++++----------
 gcc/fortran/symbol.cc                         | 58 ++++++++++++++
 .../gfortran.dg/graphite/pr107865.f90         |  2 +-
 gcc/testsuite/gfortran.dg/pr101267.f90        |  2 +-
 gcc/testsuite/gfortran.dg/pr112404.f90        |  2 +-
 gcc/testsuite/gfortran.dg/pr78061.f           |  2 +-
 gcc/testsuite/gfortran.dg/pr79315.f90         |  6 +-
 gcc/testsuite/gfortran.dg/spec_expr_8.f90     | 24 ++++++
 gcc/testsuite/gfortran.dg/spec_expr_9.f90     | 19 +++++
 gcc/testsuite/gfortran.dg/vect/pr90681.f      |  2 +-
 gcc/testsuite/gfortran.dg/vect/pr97761.f90    |  2 +-
 gcc/testsuite/gfortran.dg/vect/pr99746.f90    |  2 +-
 14 files changed, 152 insertions(+), 58 deletions(-)
 create mode 100644 gcc/testsuite/gfortran.dg/spec_expr_8.f90
 create mode 100644 gcc/testsuite/gfortran.dg/spec_expr_9.f90

-- 
2.43.0


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

end of thread, other threads:[~2024-03-17 21:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-17 16:57 [PATCH v2 0/2] fortran: Fix specification checks [PR111781] Mikael Morin
2024-03-17 16:57 ` [PATCH v2 1/2] testsuite: Declare fortran array bound variables Mikael Morin
2024-03-17 16:57 ` [PATCH v2 2/2] fortran: Fix specification expression error with dummy procedures [PR111781] Mikael Morin
2024-03-17 20:57   ` Harald Anlauf
2024-03-17 21:39     ` Mikael Morin

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).