[Bug c++/89383] [9 Regression] libcpp/line-map.c:748:15: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int'
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 18 09:46:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89383
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Mon Feb 18 09:46:19 2019
New Revision: 268981
URL: https://gcc.gnu.org/viewcvs?rev=268981&root=gcc&view=rev
Log:
Use 1UL constant in order to not overflow (PR c++/89383).
2019-02-18 Martin Liska <mliska@suse.cz>
PR c++/89383
* line-map.c (linemap_line_start): Use 1UL in order
to not overflow.
Modified:
trunk/libcpp/ChangeLog
trunk/libcpp/line-map.c
More information about the Gcc-bugs
mailing list