From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4F2043858401; Tue, 28 Dec 2021 14:13:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F2043858401 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103851] New: ICE in gimple_range_global at gcc/value-query.cc:424 since r12-3433-ga25e0b5e6ac8a77a Date: Tue, 28 Dec 2021 14:13:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc 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: Tue, 28 Dec 2021 14:13:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103851 Bug ID: 103851 Summary: ICE in gimple_range_global at gcc/value-query.cc:424 since r12-3433-ga25e0b5e6ac8a77a Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: qing.zhao at oracle dot com, rguenth at gcc dot gnu.org Target Milestone: --- The following ICEs: $ cat inkscape.ii struct pointer_traits { template using rebind =3D _Up *; }; template using __ptr_rebind =3D pointer_traits::rebind<_Tp>; struct _Deque_iterator { __ptr_rebind _M_cur; }; struct _Deque_base { long _M_map_size; _Deque_iterator _M_start; _Deque_iterator _M_finish; }; enum { Y }; namespace { template void morphologicalFilter1D() { #pragma omp parallel _Deque_base vals[BPP]; } } // namespace void FilterMorphologyrender_cairo() { morphologicalFilter1D; } $ g++ inkscape.ii -fopenmp -c -ftrivial-auto-var-init=3Dpattern during GIMPLE pass: walloca inkscape.ii: In function =E2=80=98void {anonymous}::morphologicalFilter1D()= [with =3D int; int =3D 0; int BPP =3D 4]=E2= =80=99: inkscape.ii:18:15: internal compiler error: Segmentation fault 18 | _Deque_base vals[BPP]; | ^~~~ 0x123be8a crash_signal /home/marxin/Programming/gcc/gcc/toplev.c:322 0x7ffff787d42f ??? =20=20=20=20=20=20=20 /usr/src/debug/glibc-2.34-4.1.x86_64/signal/../sysdeps/unix/sysv/linux/x86_= 64/libc_sigaction.c:0 0x153b0f0 gimple_range_global(tree_node*) /home/marxin/Programming/gcc/gcc/value-query.cc:424 0x1f5d015 ranger_cache::get_global_range(irange&, tree_node*) const /home/marxin/Programming/gcc/gcc/gimple-range-cache.cc:933 0x1f5d015 ranger_cache::get_global_range(irange&, tree_node*) const /home/marxin/Programming/gcc/gcc/gimple-range-cache.cc:929 0x1f59c34 gimple_ranger::export_global_ranges() /home/marxin/Programming/gcc/gcc/gimple-range.cc:453 0x1f98895 pass_walloca::execute(function*) /home/marxin/Programming/gcc/gcc/gimple-ssa-warn-alloca.c:381 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=