This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/48776] ICE(segfault) after -std=f95 diagnostic error involving PROCEDURE


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]