This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66461] [4.9/5/6/7 Regression] ICE on missing end program in fixed source
- From: "mikael at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 22 May 2016 19:13:54 +0000
- Subject: [Bug fortran/66461] [4.9/5/6/7 Regression] ICE on missing end program in fixed source
- Auto-submitted: auto-generated
- References: <bug-66461-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66461
--- Comment #20 from Mikael Morin <mikael at gcc dot gnu.org> ---
(In reply to Mikael Morin from comment #19)
>
> what I don't understand is that error itself,
It comes from scanner.c's end_flag which is cleared on the first match, but it
is set at some point later, and it's not restored to its cleared state when the
locus is restored before the second match.
The end_flag basically disables all of the continuation and comment lines
handling in gfc_next_char_literal.