[patch, fortran] PR69110 ICE with NEWUNIT

Jerry DeLisle jvdelisle@charter.net
Thu Feb 25 00:54:00 GMT 2016


This patch from Steve on c.l.f

Fixes the segfault from attempting a string compare where there is no string yet.

Regression tested on x86-64.  New test case.

OK for trunk.

Regards,

Jerry

2016-02-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
	    Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/69110
	* io.c (gfc_match_open): Check that open status is an expression
	constant before comparing string to 'scratch' with NEWUNIT.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr69110.diff
Type: text/x-patch
Size: 1324 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160225/554a7ab9/attachment.bin>


More information about the Gcc-patches mailing list