From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 65C433858D3C; Fri, 11 Mar 2022 11:31:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 65C433858D3C From: "dimitar.yordanov at sap dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/104880] New: regression ICE in expand_expr_addr_expr_1, at expr.c:8231 Date: Fri, 11 Mar 2022 11:31:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 11.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dimitar.yordanov at sap dot com 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Fri, 11 Mar 2022 11:31:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104880 Bug ID: 104880 Summary: regression ICE in expand_expr_addr_expr_1, at expr.c:8231 Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: dimitar.yordanov at sap dot com Target Milestone: --- Hi, I hit an ICE with the following reduced example: cat > foo.cc << EOF class c { long b; }; class B { public: typedef void *d; }; class aa { public: aa(B::d, char *); }; class e : public B { public: e(); }; __uint128_t f; struct g { struct h : c { h(__uint128_t &i) : c(reinterpret_cast(i)) {} __uint128_t ad(); }; }; class n : g { public: n(int); void j() { __uint128_t a; h k(a); __atomic_compare_exchange_n(&f, &a, k.ad(), true, 3, 0); } }; int l; class m : e { void ar() { n b(l); b.j(); } virtual c bd() { aa(d(&m::ar), ""); } }; void o() { new m; } EOF g++ -mcx16 -O2 -c foo.cc during RTL pass: expand foo.cc: In member function =E2=80=98void m::ar()=E2=80=99: foo.cc:29:32: internal compiler error: in expand_expr_addr_expr_1, at expr.c:8231 29 | __atomic_compare_exchange_n(&f, &a, k.ad(), true, 3, 0); Regression appeared first with: https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dcommit;h=3Deb72dc663e9070b281be83a= 80f6f838a3a878822 Best regards Dimitar=