[PATCH,committed] PR fortran/51993 -- Convert assert() to if-statement
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Oct 30 18:29:00 GMT 2015
I've committed the attached patch as obvious. It
converts a gcc_assert() into an if-statement, which
then allows gfortran to issue a sensible error
message.
2015-10-15 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/51993
* decl.c (gfc_set_constant_character_len): Convert gcc_assert into an
if-statement causing an early return leads to valid error message.
2015-10-15 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/51993
* gfortran.dg/pr51993.f90: New test.
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr51993.diff
Type: text/x-diff
Size: 947 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20151030/bc76308b/attachment.bin>
More information about the Fortran
mailing list