Re: PATCH for fortran/85735, f951 crash on empty input

2018-05-10 Thread Steve Kargl
On Thu, May 10, 2018 at 02:17:15PM -0400, Marek Polacek wrote: > ./f951 -quiet > ^D > crashes in gfc_create_decls: > /* Build our translation-unit decl. */ > current_translation_unit > = build_translation_unit_decl (get_identifier (main_input_filename)); > because main_input_filename is nu

PATCH for fortran/85735, f951 crash on empty input

2018-05-10 Thread Marek Polacek
Running ./f951 -quiet ^D crashes in gfc_create_decls: /* Build our translation-unit decl. */ current_translation_unit = build_translation_unit_decl (get_identifier (main_input_filename)); because main_input_filename is null in this case. We can fix it like below, where main_input_filename