[Bug fortran/69860] New: ICE on missing end apostrophe with character(kind=4)
gerhard.steinmetz.fortran@t-online.de
gcc-bugzilla@gcc.gnu.org
Wed Feb 17 19:29:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69860
Bug ID: 69860
Summary: ICE on missing end apostrophe with character(kind=4)
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gerhard.steinmetz.fortran@t-online.de
Target Milestone: ---
With a missing end apostrophe :
$ cat z1.f90
program p
character(len=2, kind=4) :: a = 'aa', b = 'bb
end
$ gfortran-6 -g z1.f90
z1.f90:2:46:
character(len=2, kind=4) :: a = 'aa', b = 'bb
1
Error: Unterminated character constant beginning at (1)
f951: internal compiler error: gfc_is_constant_expr(): Unknown expression type
For some other compile options, error message may depend on $LANG etc.
More information about the Gcc-bugs
mailing list