[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 12 16:20:00 GMT 2018


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmalcolm at gcc dot gnu.org,
                   |                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Can't reproduce this with #c2.  Though, calling fold_for_warn inside of
templates looks wrong, that is generally very unsafe.

The calls to fold_for_warn have been introduced in the PR43486 changes.

Or perhaps warn_for_memset just shouldn't be called if either of arg0 and arg2
is type_dependent_expression_p?


More information about the Gcc-bugs mailing list