public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/105813] New: ICE in gfc_simplify_unpack, at fortran/simplify.cc:8490
@ 2022-06-02  3:56 asolokha at gmx dot com
  2022-06-02 14:48 ` [Bug fortran/105813] " kargl at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: asolokha at gmx dot com @ 2022-06-02  3:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105813

            Bug ID: 105813
           Summary: ICE in gfc_simplify_unpack, at
                    fortran/simplify.cc:8490
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gfortran 13.0.0 20220529 snapshot (g:58a40e76ebadce78639644cd3d56e42b68336927)
ICEs when compiling the following testcase, extracted from
flang/test/Evaluate/errors01.f90 from the flang 14.0.3 test suite:

module m
 contains
  subroutine s5
    logical, parameter :: mask(2,3) = reshape([.false., .true., .true.,
.false., .false., .true.], shape(mask))
    integer, parameter :: field(3,2) = reshape([(-j,j=1,6)], shape(field))
    integer :: x(2,3)
    x = unpack([1,2], mask, 0)
  end subroutine
end module

% powerpc-e300c3-linux-gnu-gfortran-13.0.0 -c q7sa2auy.f90
f951: internal compiler error: in gfc_simplify_unpack, at
fortran/simplify.cc:8490
0x5cf7d8 gfc_simplify_unpack(gfc_expr*, gfc_expr*, gfc_expr*)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220529/work/gcc-13-20220529/gcc/fortran/simplify.cc:8490
0x831714 do_simplify
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220529/work/gcc-13-20220529/gcc/fortran/intrinsic.cc:4677
0x83d443 gfc_intrinsic_func_interface(gfc_expr*, int)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220529/work/gcc-13-20220529/gcc/fortran/intrinsic.cc:5056
0x8a37b6 resolve_unknown_f
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220529/work/gcc-13-20220529/gcc/fortran/resolve.cc:2990
0x8a37b6 resolve_function
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220529/work/gcc-13-20220529/gcc/fortran/resolve.cc:3347
0x8a37b6 gfc_resolve_expr(gfc_expr*)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220529/work/gcc-13-20220529/gcc/fortran/resolve.cc:7187
0x8ab84e gfc_resolve_expr(gfc_expr*)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220529/work/gcc-13-20220529/gcc/fortran/resolve.cc:7154
0x8ab84e gfc_resolve_code(gfc_code*, gfc_namespace*)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220529/work/gcc-13-20220529/gcc/fortran/resolve.cc:11970
0x8aec17 resolve_codes
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220529/work/gcc-13-20220529/gcc/fortran/resolve.cc:17609
0x8aeb4e resolve_codes
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220529/work/gcc-13-20220529/gcc/fortran/resolve.cc:17592
0x8aecee gfc_resolve(gfc_namespace*)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220529/work/gcc-13-20220529/gcc/fortran/resolve.cc:17644
0x88de79 gfc_parse_file()
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220529/work/gcc-13-20220529/gcc/fortran/parse.cc:6810
0x8e273f gfc_be_parse_file
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220529/work/gcc-13-20220529/gcc/fortran/f95-lang.cc:218

(While the target here is powerpc, the ICE is not target-specific.)

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-07-01 17:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-02  3:56 [Bug fortran/105813] New: ICE in gfc_simplify_unpack, at fortran/simplify.cc:8490 asolokha at gmx dot com
2022-06-02 14:48 ` [Bug fortran/105813] " kargl at gcc dot gnu.org
2022-06-23 21:18 ` anlauf at gcc dot gnu.org
2022-06-23 22:07 ` sgk at troutmask dot apl.washington.edu
2022-06-24 20:29 ` cvs-commit at gcc dot gnu.org
2022-06-26 20:30 ` anlauf at gcc dot gnu.org
2022-06-30 20:02 ` cvs-commit at gcc dot gnu.org
2022-07-01 17:10 ` cvs-commit at gcc dot gnu.org
2022-07-01 17:24 ` cvs-commit at gcc dot gnu.org
2022-07-01 17:26 ` anlauf at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).