[Patch, Fortran] Simplify lbound

Thomas Koenig tkoenig@netcologne.de
Sun May 10 22:08:00 GMT 2015


Am 10.05.2015 um 22:43 schrieb H.J. Lu:

>> Here is what I have committed.
>>
> 
> It caused:
> 
> /export/gnu/import/git/sources/gcc/gcc/testsuite/gfortran.dg/inline_matmul_3.f90:38:39:
> Error: Variable 'c1' cannot appear in the expression at (1)^M

I know that error message, I got it when developing the inline
matmul patches with the same test cases.  I had a fix for this
error message in one of my matmul patches, but it was removed
in the review process because it could no longer be reproduced.

So, here is the fix again.  I think it is close to obvious (since it
fixes the problem and can obviously do no harm), but anyway:  OK for
trunk?

Regards

	Thomas

2015-05-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/66041
	PR fortran/37131
	* gfortran.h (gfc_array_spec):  Add field resolved.
	* array.c (gfc_resolve_array_spec):  Resolve array spec
	only once.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: p-fix.diff
Type: text/x-patch
Size: 866 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150510/af1ec61e/attachment.bin>


More information about the Fortran mailing list