[patch, fortran] PR68566 ICE on using unusable array in reshape

Jerry DeLisle jvdelisle@charter.net
Mon Apr 4 02:39:00 GMT 2016


On 04/02/2016 07:40 AM, Jerry DeLisle wrote:
> On 04/02/2016 05:42 AM, Dominique d'Humières wrote:
>>
>>> Le 2 avr. 2016 à 11:44, Dominique d'Humières <dominiq@lps.ens.fr> a écrit :
>>>
>>> Hi Jerry,
>>>
>>>> ...
>>>> I will add an additional test case for the original posted problem in the PR.
>>>> Two existing tests get exercised, changing the error message.  Finding the
>>>> problems earlier in the matchers I think is the right way to go. I am curious if
>>>> the old checks ever get triggered (I will look into that a little later.
>>>
>>> (2) Before your patch the errors were
>>>
>>> Error: Expression at (1) must be of INTEGER type, found REAL
>>>
>>> How difficult is it to restore the "found … « ?
> 
> I like that idea and not too difficult to do. ;)
> 

Here is an updated patch with Dominique's suggestion to tell what type was found
in the error message.

Patch includes a new test case fore the original test case in the PR and updates
of existing tests.

OK for trunk?

Jerry

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


More information about the Gcc-patches mailing list