[Bug fortran/92174] runtime error: index 15 out of bounds for type 'gfc_expr *[15]
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Oct 22 14:14:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92174
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to kargl from comment #1)
> (In reply to Martin Liška from comment #0)
> > Happens with UBSAN build in:
> >
> > $ ./xgcc -B.
> > /home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/pr91802.f90
> > -fcoarray=single
> > ../../gcc/fortran/array.c:867:36: runtime error: index 15 out of bounds for
> > type 'gfc_expr *[15]'
>
>
> What are you doing? pr91802.f90 is a compile time test.
> It cannot generate a runtime error.
It's a runtime error of the GCC compiler that compiles the test-case ;)
The error message is a bit misleading.
More information about the Gcc-bugs
mailing list