From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 72CD33858288; Mon, 4 Jul 2022 10:12:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72CD33858288 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106099] [13 Regression] ICE in execute_todo, at passes.cc:2134 since r13-1204-gd68d366425369649 Date: Mon, 04 Jul 2022 10:12:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin 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: 13.0 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 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: Mon, 04 Jul 2022 10:12:38 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106099 --- Comment #5 from Martin Li=C5=A1ka --- (In reply to Andrew Pinski from comment #3) > (In reply to Martin Li=C5=A1ka from comment #2) > > Started with r13-1204-gd68d366425369649. >=20 > Since -funreachable-traps is a new option, is this a regression then? I have a new test-case that does not need the option: $ cat new-alias.cpp using size_t =3D decltype(sizeof(0)); extern "C" char *something(long long x) {} void *operator new(size_t) __attribute__((alias("something"))); int *pr16715 =3D new int; $ g++ new-alias.cpp -c -Og new-alias.cpp: In function =E2=80=98char* something(long long int)=E2=80=99: new-alias.cpp:2:42: warning: no return statement in function returning non-= void [-Wreturn-type] 2 | extern "C" char *something(long long x) {} | ^ new-alias.cpp: At global scope: new-alias.cpp:3:7: warning: =E2=80=98void* operator new(size_t)=E2=80=99 al= ias between functions of incompatible types =E2=80=98void*(size_t)=E2=80=99 {aka =E2=80= =98void*(long unsigned int)=E2=80=99} and =E2=80=98char*(long long int)=E2=80=99 [-Wattribute-alia= s=3D] 3 | void *operator new(size_t) __attribute__((alias("something"))); | ^~~~~~~~ new-alias.cpp:2:18: note: aliased declaration here 2 | extern "C" char *something(long long x) {} | ^~~~~~~~~ during GIMPLE pass: local-pure-const new-alias.cpp: In function =E2=80=98void __static_initialization_and_destru= ction_0()=E2=80=99: new-alias.cpp:4:23: internal compiler error: in execute_todo, at passes.cc:= 2140 4 | int *pr16715 =3D new int; | ^ 0x17450d1 execute_todo /home/marxin/Programming/gcc/gcc/passes.cc:2140 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.=