This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran] Fix PR 16907: Allow REAL array indices


Steven Bosscher wrote:
> On Sunday 13 March 2005 19:05, Tobias SchlÃter wrote:
>>This is an extension g77 had and we were missing.
>>I deliberately chose the following error not to say anything about the
>>extension: if (index->ts.type != BT_INTEGER && index->ts.type != BT_REAL)
>>    {
>>      gfc_error ("Array index at %L must be of INTEGER type",
>>		 &index->where);
>>      return FAILURE;
>>    }
>>   ...
>>I thought it would be the easiest way to avoid special cases, and there's
>>no point in advertising an extension.
>>
>>Bubblestrapped and regtested, new testcase attached.  Ok?
> 
> 
> Actually, I would prefer that we do not support this extension...

Care to explain?  People found this bug, so someone uses it.  The patch is not
invasive at all, and I don't think anybody is served better by not supporting
it.  Unlike real loop indices (which we support) this is also well-defined.

- Tobi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]