[Bug libfortran/67534] libgfortran.h sanitizer complains on left shift of ~0 runtime error: left shift of negative value -1

fxcoudert at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Sep 12 11:03:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67534

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu.org

--- Comment #1 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
(In reply to Vittorio Zecca from comment #0)
> The sanitizer complains on libgfortran.h:408
> 
> ((~((index_type) 0) >> GFC_DTYPE_SIZE_SHIFT) << GFC_DTYPE_SIZE_SHIFT)

That code is gone on trunk. Could you test there?



More information about the Gcc-bugs mailing list