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

--- Comment #15 from Christopher Albert <albert at tugraz dot at> ---
Created attachment 64060
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64060&action=edit
[PATCH] fortran: Accept valid ENTRY specification expressions [PR85352]

Patch attached.

The reject-valid diagnostic comes from losing the context of which dummy's
specification expressions are currently being resolved.  This patch tracks
that dummy and suppresses the before-the-ENTRY diagnostic only for sibling
ENTRY arguments in the same still-unresolved ENTRY.

Regtested on x86_64-pc-linux-gnu with:

- make -C gcc-build-pr85352/gcc check-gfortran
RUNTESTFLAGS='dg.exp=pr85352.f90'
- make -C gcc-build-pr85352/gcc -j32 -k check-gfortran
- make -C gcc-build-pr85352 -j32 check-target-libgomp-fortran

All passed.
  • [Bug fortran/85352] [13/14/15/1... albert at tugraz dot at via Gcc-bugs

Reply via email to