https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69859
Bug ID: 69859
Summary: ICE on incomplete character declaration statement
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
With an incomplete declaration :
$ cat z1.f90
program p
type t
character x y
end type
end
$ gfortran-6 z1.f90
z1.f90:3:17:
character x y
1
Error: Syntax error in data declaration at (1)
f951: internal compiler error: gfc_is_constant_expr(): Unknown expression type
---
Whereas, without embedding in type :
$ cat z2.f90
program p
character x y
end
$ gfortran-6 z2.f90
z2.f90:2:14:
character x y
1
Error: Syntax error in data declaration at (1)
# no ICE