From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0C4433855011; Wed, 14 Jul 2021 09:13:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0C4433855011 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101443] internal compiler error: in wide_int_to_tree_1, at tree.c:1519 Date: Wed, 14 Jul 2021 09:13:04 +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: 9.3.0 X-Bugzilla-Keywords: ice-on-valid-code, needs-bisection, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2021 09:13:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101443 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek --- Reduced testcase for -O2: template struct e { a c; }; template struct f { void operator()(d g, d h) { g < h; } }; template struct n; template using j =3D typename n::k; template class ah {}; template struct n> : n> {}; template struct n<0, ah> { typedef a= g k; }; template j> aj(ah); template struct o { static bool am(int g, m h) { 0 < aj(h) || o::am(g, h); return false; } }; template void operator<(ah, ah) { using ar =3D o, 0>; ar::am; } template ah as(ai...); template struct F { d operator*(); }; template struct p { typedef F ay; }; template > struct q { void operator[](az g) { typename p>::ay i; bh()(g, (*i).c); } ba bh(); }; struct r { template static int aj(bj... g) { auto a =3D as(g...); using bc =3D decltype(a); q b; b[a]; return 0; } template static int bn(bj... g) { aj(g...); return 0; } }; int main() { r::bn(0, nullptr); } Even simpler testcase: decltype(nullptr) foo (); bool bar () { return 0 < foo () || foo () < 0; }=