This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, fortran] Fix PR 79956, part two
On Mon, Mar 13, 2017 at 12:10:05AM +0100, Thomas Koenig wrote:
> Hi Jerry,
>
> > + if (sdim < 1)
> > + internal_error (NULL, "Source array cannot be scalar");
> >
> > Ever exist in reality?
>
> I think it can only occur when memory corruption has happened.
>
> > Does adding this statement add a small runtime performance penalty or is
> > it optimized out?
>
> I think it is still tested at runtime. Sometimes it is hard to read the
> generated assembly...
>
Please, don't add a performance penalty to gfortran
to silence a silly gcc warning.
--
Steve
20161221 https://www.youtube.com/watch?v=IbCHE-hONow