This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66056] Segmentation fault for lonely label in type
- 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: Wed, 17 Jun 2015 16:56:48 +0000
- Subject: [Bug fortran/66056] Segmentation fault for lonely label in type
- Auto-submitted: auto-generated
- References: <bug-66056-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66056
--- Comment #3 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
The following test file generates an endless compilation for every
subroutine. It's worth looking deeper.
$ cat type_with_lonely_numbers.f90
program p
call s1
call s2
call s3
call s4
call s5
call s6
contains
subroutine s1
type t
integer :: n = 1
1 !
1 !
end type
type(t) :: a
print *, a
end
subroutine s2
type t
integer :: n = 1
; 1 ;
; 1 ;
end type
type(t) :: a
print *, a
end
subroutine s3
type t
integer :: n = 1
1.2 !
1.2 !
end type
type(t) :: a
print *, a
end
subroutine s4
type t
integer :: n = 1
; 1.2 ;
; 1.2 ;
end type
type(t) :: a
print *, a
end
subroutine s5
type t
integer :: n = 1
1=2 !
1=2 !
end type
type(t) :: a
print *, a
end
subroutine s6
type t
integer :: n = 1
1-2 !
1-2 !
end type
type(t) :: a
print *, a
end
end