[Patch, Fortran] PR 50070: Segmentation fault at size_binop_loc in fold-const.c

Janus Weil janus@gcc.gnu.org
Tue Aug 16 17:18:00 GMT 2011


Hi all,

here is a small patch for an ICE-on-invalid problem with COMMON and
character length. I was kinda surprised that we don't catch this
already. The fix is rather simple, but after the amount of discussion
(that I had with myself) in the PR, I probably cannot claim that it
was 'obvious' to me.

In any case, the patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk?

Cheers,
Janus


2011-08-16  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/50070
	* resolve.c (resolve_fl_variable): Reject non-constant character lengths
	in COMMON variables.


2011-08-16  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/50070
	* gfortran.dg/common_13.f90: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr50070_v2.diff
Type: text/x-diff
Size: 1294 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110816/e0dba82c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: common_13.f90
Type: text/x-fortran
Size: 266 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110816/e0dba82c/attachment-0001.bin>


More information about the Fortran mailing list