From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5EF54385188B; Thu, 24 Nov 2022 17:43:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5EF54385188B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669311784; bh=R45GX8ucz/0H+8eazVXlScZEY1ja8StBh6hUHvzjD08=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vcxni7tBKrG7f6JTKBOWYBw+jaSc6hGuVj09l1rzSkZdXTNd0lQEj/uosXZRjf2n9 RByPryv/IgskPsMer2+1EmcX0/qUMc2ISGdR6pjxs8rZuRGMwI8Kq/iJsBQa0HiRFp JqVZH5amrXw0ZcFjlz3eLUyJ4o6BH9GlpyztU+5s= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107755] [10/11/12/13 Regression] ICE: in fold_convert_loc, at fold-const.c:2435, with -Wlogical-op, implicit user-defined conversion operator, template function, logical operator, and conditional operator Date: Thu, 24 Nov 2022 17:43:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.3.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107755 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek --- One possible fix would be not to emit these warnings while processing_template_decl, the warning goes too deep into the expressions and even when the operands are neither type nor value dependent, if processing_template_decl they are far from what the middle-end code can gro= k. I wonder where IMPLICIT_CONV_EXPR gets lost, so the COND_EXPR with boolean_type_node type has RECORD_TYPE operand.=