This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48776] ICE(segfault) after -std=f95 diagnostic error involving PROCEDURE
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 May 2016 19:30:20 +0000
- Subject: [Bug fortran/48776] ICE(segfault) after -std=f95 diagnostic error involving PROCEDURE
- Auto-submitted: auto-generated
- References: <bug-48776-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48776
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> On my environment, the example from comment 0 compiles now without an ICE.
With 6.1.0, I get
[Book15] f90/bug% gfortran pr48776.f90 -std=f95
pr48776.f90:2:18:
procedure get1
1
Error: Fortran 2003: PROCEDURE statement at (1)
'
(null):0: confused by earlier errors, bailing out
or
[Book15] f90/bug% gfortran pr48776.f90 -std=f95
pr48776.f90:2:18:
procedure get1
1
Error: Fortran 2003: PROCEDURE statement at (1)
pr48776.f90:5:14:
integer :: h
1
Error: Procedure 'h' in generic interface 'get' at (1) is neither function nor
subroutine
pr48776.f90:6:13:
call set1 (get (h))
1
Error: There is no specific function for the generic 'get' at (1)
So this PR seems to be another instance of non-deterministic error recovery.