From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 941F4398E405; Tue, 19 Jan 2021 15:35:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 941F4398E405 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94751] [9/10/11 Regression] ICE on invalid code in maybe_instantiate_noexcept Date: Tue, 19 Jan 2021 15:35:56 +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.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 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: Tue, 19 Jan 2021 15:35:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94751 David Binderman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcb314 at hotmail dot com --- Comment #3 from David Binderman --- Reduced code is: template struct c { static constexpr int d =3D a; }; template struct e; template struct e { typedef f g; }; template f aa(); class h { public: template void ab(i *, j...) { i(j()...); } }; template using k =3D h; template class l : public k {}; template struct m; template struct m> { using n =3D l; using o =3D f *; template using p =3D l; template static void ab(n ac, i q, j...) { ac.ab(q, j()...); } }; template struct r; struct s : m>> { struct ad { typedef p> ae; }; }; template struct af; template using ag =3D typename af::g; template class ah {}; template struct af> { typedef ai = g; }; template ag> ak(ah); class al { public: template void operator=3D(w); }; struct am { struct an { s::o ao; }; struct : s::ad::ae, an { } ap; }; template class x : am { public: template s aq(j &&...); }; template template s x::aq(j &&...) { s::ab(ap, ap.ao, aa()...); } template class as; template struct r { int au; r(at...); template void aw(av); }; class y { public: static constexpr struct { template typename e::d, ax>::g ay(); template static typename e::d, ax>::g ay(); } az{}; }; template struct z { static void bb() { ah b; ak(b) =3D y::az.ay; } }; template void be(bc, bd) { z<0>::bb; } template r::r(at...) { aw(y::az); } template template void r::aw(av ac) { be(au, ac); } template class as { public: as &bf(); x bg; }; template as &as::bf() { ax t; bg.aq(t); } template as bh(at...); auto bi =3D bh(1.0f).bf();=