From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F38D73858C83; Mon, 28 Feb 2022 12:32:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F38D73858C83 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/104717] New: ICE: verify_ssa failed (Error: type mismatch between an SSA_NAME and its symbol) Date: Mon, 28 Feb 2022 12:32:25 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx 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: Mon, 28 Feb 2022 12:32:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104717 Bug ID: 104717 Summary: ICE: verify_ssa failed (Error: type mismatch between an SSA_NAME and its symbol) Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gfortran 12.0.1 20220227 snapshot (g:d1574a9b820f17adb9004255e2018967e9be06= 3b) ICEs when compiling the following testcase, extracted from libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90, w/ -O1 -fopena= cc -fstack-arrays: program main implicit none (type, external) integer :: j integer, allocatable :: A(:) A =3D [(3*j, j=3D1, 10)] call foo (A, size(A)) deallocate (A) contains subroutine foo (array, nn) integer :: i, nn integer :: array(nn) !$acc parallel copyout(array) array =3D [(-i, i =3D 1, nn)] !$acc end parallel end subroutine foo end % gfortran-12.0.1 -O1 -fopenacc -fstack-arrays -c qatodltq.f90 qatodltq.f90:8:16: 8 | deallocate (A) | ^ Error: type mismatch between an SSA_NAME and its symbol qatodltq.f90:8:16: Error: type mismatch between an SSA_NAME and its symbol while verifying SSA_NAME A.14_21 in statement # .MEM_20 =3D VDEF <.MEM_13> A.14_21 =3D __builtin_alloca_with_align (_19, 32); during IPA pass: pta qatodltq.f90:8:16: internal compiler error: verify_ssa failed 0x1199793 verify_ssa(bool, bool) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220227/work/gcc-12-20220227/gcc/tr= ee-ssa.cc:1211 0xe66da5 execute_function_todo =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220227/work/gcc-12-20220227/gcc/pa= sses.cc:2091 0xe67182 do_per_function =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220227/work/gcc-12-20220227/gcc/pa= sses.cc:1694 0xe67182 do_per_function =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220227/work/gcc-12-20220227/gcc/pa= sses.cc:1684 0xe671dc execute_todo =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220227/work/gcc-12-20220227/gcc/pa= sses.cc:2138 BTW, the error is emitted twice in a row.=