[Bug c++/86653] UBSAN error: cp/parser.c:11760:19: runtime error: load of value 10, which is not a valid value for type 'bool'

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 31 10:33:00 GMT 2018


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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Tue Jul 31 10:32:13 2018
New Revision: 263110

URL: https://gcc.gnu.org/viewcvs?rev=263110&root=gcc&view=rev
Log:
Fix an UBSAN error in cp/parse.c (PR c++/86653).

2018-07-31  Martin Liska  <mliska@suse.cz>

        PR c++/86653
        * parser.c (cp_parser_condition): Initialize non_constant_p
        to false.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c


More information about the Gcc-bugs mailing list