https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80291
Bug ID: 80291
Summary: internal compiler error: in gfc_conv_expr_descriptor,
at fortran/trans-array.c:6662
Product: gcc
Version: 5.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: snowfed at mail dot ru
Target Milestone: ---
Created attachment 41108
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41108&action=edit
This small program reproduces the compiler bug.
Dear gfortran developers!
I stumbled upon this compiler bug which is quite easy to reproduce (source code
attached). Don't know if it's been fixed in future releases of the compiler
although I doubt it because it wouldn't be a common problem to occur.
--------------------------------
Example (Ubuntu 16.04)
--------------------------------
$ gfortran bug_gfortran.f90 -ggdb
bug_gfortran.f90:67:0:
vertices = cell%get_vertex(pack([1,2,3,4], cell%get_mask([1,2,3,4])))
1
internal compiler error: in gfc_conv_expr_descriptor, at
fortran/trans-array.c:6662
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
Fedor