Created attachment 43939 [details] Patch When reading inconsistent module files, an assert can be triggered in read_module(). The attached patch replaces the assert by an error message which may be more informative for the user. See https://gcc.gnu.org/ml/fortran/2018-04/msg00023.html and context for discussion and proposed Changelog.
The trunk is now at 9.0. The patch can be committed if accepted.
(In reply to Dominique d'Humieres from comment #1) > The trunk is now at 9.0. The patch can be committed if accepted. It was my understanding that Steve OK'd it and said that he'd commit, but then did not. I do not have commit rights.
(In reply to Harald Anlauf from comment #2) > (In reply to Dominique d'Humieres from comment #1) > > The trunk is now at 9.0. The patch can be committed if accepted. > > It was my understanding that Steve OK'd it and said that he'd commit, > but then did not. > Yeah, I'll get around to it when I have some free time.
Author: kargl Date: Wed Dec 26 20:37:28 2018 New Revision: 267422 URL: https://gcc.gnu.org/viewcvs?rev=267422&root=gcc&view=rev Log: 2018-12-26 Harald Anlauf <anlauf@gmx.de> PR fortran/85407 * module.c (read_module): Convert assert to fatal error to give user a sensible error message. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/module.c
Fixed on trunk. Harald, sorry about the long delay. Perhaps, we should get you a commit bit. :)