This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/77583] ICE in pp_quoted_string, at pretty-print.c:966
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Sep 2016 18:56:50 +0000
- Subject: [Bug fortran/77583] ICE in pp_quoted_string, at pretty-print.c:966
- Auto-submitted: auto-generated
- References: <bug-77583-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77583
--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
With official releases (configured with --enable-checking=release) :
$ gfortran-6 z1.f90
z1.f90:3:20:
pure subroutine s
1
Error: internal procedure 's' at (1) conflicts with DUMMY argument
'
(null):0: confused by earlier errors, bailing out
$ gfortran-5 z1.f90
z1.f90:3:20:
pure subroutine s
1
Error: internal procedure 's' at (1) conflicts with DUMMY argument
z1.f90:3:20: Error: internal procedure '' at (1) conflicts with DUMMY argument
# no ICE
$ gfortran-4.9 z1.f90
z1.f90: In function 's':
z1.f90:1:0: internal compiler error: in make_decl_rtl, at varasm.c:1221
pure subroutine sub(s)
^
Please submit a full bug report,
with preprocessed source if appropriate.
---
More variants :
$ cat z2.f90
recursive subroutine sub(s)
contains
recursive subroutine s
end
end
$ cat z3.f90
elemental subroutine sub(s)
contains
elemental subroutine s
end
end
$ cat z4.f90
pure elemental subroutine sub(s)
contains
pure elemental subroutine s
end
end
$ cat z5.f90
pure subroutine sub(s)
contains
elemental subroutine s
end
end
$ cat z6.f90
elemental function f(s)
real, intent(in) :: s
contains
pure subroutine s
end
end
# ...