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

            Bug ID: 61999
           Summary: `gfc_simplify_dot_product` causes ICE for constant
                    arguments
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: latlon90180+gcc_bugzilla at gmail dot com

Following code leads `gcc-mp-4.8 (MacPorts gcc48 4.8.2_2) 4.8.2` and `GNU
Fortran (MacPorts gcc47 4.7.3_5) 4.7.3` to ICE.


```fortran
program main
   use, intrinsic:: iso_fortran_env, only: output_unit

   implicit none

   write(output_unit, *) dot_product([1, 2], [2.0, 3.0])

   stop
end program main
```

```
f951: internal compiler error: in gfc_simplify_dot_product, at
fortran/simplify.c:1886

f951: internal compiler error: Abort trap: 6
gfortran-mp-4.8: internal compiler error: Abort trap: 6 (program f951)
Abort trap: 6
```

Reply via email to