[gfortran] Allocate bugfix

Paul Brook paul@nowt.org
Thu Aug 14 22:14:00 GMT 2003


Attached patch fixes a bug with the allocate statement for non-array types.

Applied to tree-ssa branch.

Paul

2003-08-14  Paul Brook  <paul@nowt.org>

	* trans-stmt.c (gfc_trans_allocate): Handle NULL refs. Allocate the
	size of the type, not the pointer.
	* resolve.c (resolve_symbol): Give more accurate error message.

	* gfortran.fortran-torture/compile/allocate.f90: Also test scalars.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-diff
Size: 2680 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030814/ad35ab2c/attachment.bin>


More information about the Gcc-patches mailing list