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

            Bug ID: 83515
           Summary: ICE: Invalid expression in gfc_element_size
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: liakhdi at ornl dot gov
  Target Milestone: ---

Code: https://github.com/DmitryLyakh/GFC.git
To reproduce: Open Makefile, make line 138 look exactly like line 140:
NO_GNU := -DNO_GNU
Type "make"
If you need a debuggable version (-g), please change OPT to DEV in line 9.
If you need any help from me to debug the issue (we did this in the past with
Paul Thomas, but not for ICE), please let me know.

ICE description: source file gfc_vector.F90 is causing this:
gfortran -I. -I. -c -fopenmp -O3 -DNO_GPU -DNO_AMD -DNO_PHI -DLINUX -DNO_GNU
-DNO_PGI -fPIC gfc_vector.F90 -o ./OBJ/gfc_vector.o
f951: internal compiler error: Invalid expression in gfc_element_size.
0x891e7f gfc_internal_error(char const*, ...)
        /home/dima/src/gcc/gcc/fortran/error.c:1358
0x922e6b gfc_element_size(gfc_expr*)
        /home/dima/src/gcc/gcc/fortran/target-memory.c:126
0x8768f9 find_intrinsic_vtab
        /home/dima/src/gcc/gcc/fortran/class.c:2703
0x8768f9 gfc_find_vtab(gfc_typespec*)
        /home/dima/src/gcc/gcc/fortran/class.c:2846
0x8a039c compare_actual_formal
        /home/dima/src/gcc/gcc/fortran/interface.c:2934
0x8a14d4 gfc_arglist_matches_symbol(gfc_actual_arglist**, gfc_symbol*)
        /home/dima/src/gcc/gcc/fortran/interface.c:3797
0x905bc2 resolve_typebound_generic_call
        /home/dima/src/gcc/gcc/fortran/resolve.c:6125
0x905f5e resolve_typebound_call
        /home/dima/src/gcc/gcc/fortran/resolve.c:6183
0x8fa4c9 resolve_typebound_subroutine
        /home/dima/src/gcc/gcc/fortran/resolve.c:6494
0x8fa4c9 gfc_resolve_code(gfc_code*, gfc_namespace*)
        /home/dima/src/gcc/gcc/fortran/resolve.c:11270
0x908aab gfc_resolve_blocks(gfc_code*, gfc_namespace*)
        /home/dima/src/gcc/gcc/fortran/resolve.c:10108
0x8f8fd9 gfc_resolve_code(gfc_code*, gfc_namespace*)
        /home/dima/src/gcc/gcc/fortran/resolve.c:11052
0x908aab gfc_resolve_blocks(gfc_code*, gfc_namespace*)
        /home/dima/src/gcc/gcc/fortran/resolve.c:10108
0x8f8fd9 gfc_resolve_code(gfc_code*, gfc_namespace*)
        /home/dima/src/gcc/gcc/fortran/resolve.c:11052
0x908aab gfc_resolve_blocks(gfc_code*, gfc_namespace*)
        /home/dima/src/gcc/gcc/fortran/resolve.c:10108
0x8f8fd9 gfc_resolve_code(gfc_code*, gfc_namespace*)
        /home/dima/src/gcc/gcc/fortran/resolve.c:11052
0x908aab gfc_resolve_blocks(gfc_code*, gfc_namespace*)
        /home/dima/src/gcc/gcc/fortran/resolve.c:10108
0x8f8fd9 gfc_resolve_code(gfc_code*, gfc_namespace*)
        /home/dima/src/gcc/gcc/fortran/resolve.c:11052
0x8fbf2f resolve_codes
        /home/dima/src/gcc/gcc/fortran/resolve.c:16433
0x8fbe6e resolve_codes
        /home/dima/src/gcc/gcc/fortran/resolve.c:16417

Reply via email to