Re: [PATCH] Fix a pasto in gfc_check_num_images

2017-07-31 Thread Richard Biener
On Mon, Jul 31, 2017 at 9:39 AM, Jakub Jelinek wrote: > Hi! > > bootstrap-ubsan reported taking address of a &distance->where when > distance is NULL. The function has one block guarded with if (distance) > and another guarded with if (failed), so I think this is just a pasto > from the earlier i

[PATCH] Fix a pasto in gfc_check_num_images

2017-07-31 Thread Jakub Jelinek
Hi! bootstrap-ubsan reported taking address of a &distance->where when distance is NULL. The function has one block guarded with if (distance) and another guarded with if (failed), so I think this is just a pasto from the earlier if (distance) block. Bootstrapped/regtested on x86_64-linux and i6