This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80297] [6/7 Regression] Compiler time crash: type mismatch in binary expression
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 04 Apr 2017 05:59:31 +0000
- Subject: [Bug c++/80297] [6/7 Regression] Compiler time crash: type mismatch in binary expression
- Auto-submitted: auto-generated
- References: <bug-80297-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80297
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So far this looks like some tree sharing issue.
*expr_p = gimple_boolify (*expr_p);
if (!useless_type_conversion_p (org_type,
TREE_TYPE (*expr_p)))
{
*expr_p = fold_convert_loc (input_location,
org_type, *expr_p);
ret = GS_OK;
}
changes in place unsigned int type into bool and then wraps into cast to
unsigned int, but that now bool EQ_EXPR appears somewhere else too.