[Bug fortran/67496] trans-array.c sanitizer runtime error: load of value 124, which is not a valid value for type 'bool'
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Tue Nov 10 21:52:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67496
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2015-11-10
Ever confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Does the following patch fixes the error?
--- ../_clean/gcc/fortran/trans-array.c 2015-11-08 18:49:07.000000000 +0100
+++ gcc/fortran/trans-array.c 2015-11-10 22:21:06.000000000 +0100
@@ -2234,7 +2234,7 @@ trans_array_constructor (gfc_ss * ss, lo
/* Do bounds-checking here and in gfc_trans_array_ctor_element only if no
typespec was given for the array constructor. */
typespec_chararray_ctor = (expr->ts.u.cl
- && expr->ts.u.cl->length_from_typespec);
+ && expr->ts.u.cl->length_from_typespec != 0);
if ((gfc_option.rtcheck & GFC_RTCHECK_BOUNDS)
&& expr->ts.type == BT_CHARACTER && !typespec_chararray_ctor)
More information about the Gcc-bugs
mailing list