This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/66461] [4.9/5/6/7 Regression] ICE on missing end program in fixed source


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]