From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 309E53858C52; Fri, 23 Sep 2022 09:08:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 309E53858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663924088; bh=5rcKcrJyTgXdHnVK4NQluL7Hn7REkBruG+qgSpq/6nQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nM7I00bpBXvKNbQbOhAXj98wUBKhPaI0bY2L+XoySXEjTKKag+B6K7/bdcsTZxohV XPMSNAmANh77T8853hCcc/qP+5o61byIErm0tQsQY2nfaKHz6dKE90DT6aUp+Kk//h zgOuSISOFfjJhcRgkbfX3YaHzoV74kEvMTH2yStk= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/106981] [10/11/12/13 Regression][OpenACC][OpenMP] ICE in decompose, at wide-int.h:984 with '#pragma omp/acc atomic capture' Date: Fri, 23 Sep 2022 09:08:07 +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: 13.0 X-Bugzilla-Keywords: ice-on-invalid-code, openacc, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D106981 --- Comment #6 from Tobias Burnus --- (In reply to Jakub Jelinek from comment #5) > The fix could be either partially backport what C++ FE did in > --- gcc/c/c-typeck.cc.jj 2022-09-23 09:02:56.525318361 +0200 > +++ gcc/c/c-typeck.cc 2022-09-23 10:33:06.596467788 +0200 > + if (CONSTANT_CLASS_P (t1) && !comptypes (TREE_TYPE (t1), TREE_TYPE (t2= ))) > + return false; Maybe. Though I think we still need something like my: + if (n > TREE_OPERAND_LENGTH (t2)) + return false; (With ">" not ">=3D" as I accidentally had.) Given that=20 if (!c_tree_equal (TREE_OPERAND (t1, i), TREE_OPERAND (t2, i))) does not make sense when exceeding the operand length! Nonetheless, ... > Now, wonder what will break if I just strip same type casts and > for others like in C++ require same type. sounds like a reasonable approach,.=