public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/85541] ICE with parameterized derived type (PDT) and allocate
       [not found] <bug-85541-4@http.gcc.gnu.org/bugzilla/>
@ 2020-06-28  0:22 ` siteg at mathalacarte dot com
  2022-10-13 16:30 ` aarograh at umich dot edu
  1 sibling, 0 replies; 2+ messages in thread
From: siteg at mathalacarte dot com @ 2020-06-28  0:22 UTC (permalink / raw)
  To: gcc-bugs

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

Fred Krogh <siteg at mathalacarte dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |siteg at mathalacarte dot com

--- Comment #3 from Fred Krogh <siteg at mathalacarte dot com> ---
I tried compiling the subroutine uc with GNU Fortran (GCC) 10.1.1 20200507 (Red
Hat 10.1.1-1).  And got this
gfortran -c -o uc.o uc.f90
f951: internal compiler error: Segmentation fault
0x7f8327870aaf ???
       
/usr/src/debug/glibc-2.31-17-gab029a2801/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7f832785b041 __libc_start_main
        ../csu/libc-start.c:308
So the problem is still here.

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

* [Bug fortran/85541] ICE with parameterized derived type (PDT) and allocate
       [not found] <bug-85541-4@http.gcc.gnu.org/bugzilla/>
  2020-06-28  0:22 ` [Bug fortran/85541] ICE with parameterized derived type (PDT) and allocate siteg at mathalacarte dot com
@ 2022-10-13 16:30 ` aarograh at umich dot edu
  1 sibling, 0 replies; 2+ messages in thread
From: aarograh at umich dot edu @ 2022-10-13 16:30 UTC (permalink / raw)
  To: gcc-bugs

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

aarograh at umich dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aarograh at umich dot edu

--- Comment #4 from aarograh at umich dot edu ---
I've also encountered issues with this in gcc 8.3.  Here's my even simpler
example that shows the error.  The commented code hints at the more complex
functionality that I'm actually working toward.

MODULE testMod
IMPLICIT NONE
PUBLIC

TYPE :: cache(n)
  INTEGER,LEN :: n
  REAL :: a(n)
ENDTYPE cache

TYPE :: parent
  TYPE(cache(1)),ALLOCATABLE :: cache
ENDTYPE parent
ENDMODULE testMod

PROGRAM test
  USE testMod
  TYPE(cache(1)),ALLOCATABLE :: testcache
  TYPE(parent) :: testparent

  ALLOCATE(cache(1) :: testcache)
  WRITE(*,*) testcache%n
  WRITE(*,*) testcache%a
  !ALLOCATE(cache(1) :: testparent%cache)
  !WRITE(*,*) testparent%cache%n
  !WRITE(*,*) testparent%cache%a
ENDPROGRAM test


f951: internal compiler error: in gfc_get_derived_type, at
fortran/trans-types.c:2545
0x5c6ca5 gfc_get_derived_type(gfc_symbol*, int)
        ../../gcc-8.3.0-source/gcc/fortran/trans-types.c:2545
0x748aa8 gfc_get_derived_type(gfc_symbol*, int)
        ../../gcc-8.3.0-source/gcc/fortran/trans-types.c:2691
0x749498 gfc_typenode_for_spec(gfc_typespec*, int)
        ../../gcc-8.3.0-source/gcc/fortran/trans-types.c:1203
0x74975c gfc_sym_type(gfc_symbol*)
        ../../gcc-8.3.0-source/gcc/fortran/trans-types.c:2272
0x74975c gfc_sym_type(gfc_symbol*)
        ../../gcc-8.3.0-source/gcc/fortran/trans-types.c:2230
0x6f443d gfc_get_symbol_decl(gfc_symbol*)
        ../../gcc-8.3.0-source/gcc/fortran/trans-decl.c:1739
0x6f6ff8 gfc_create_module_variable
        ../../gcc-8.3.0-source/gcc/fortran/trans-decl.c:5024
0x6f6ff8 gfc_create_module_variable
        ../../gcc-8.3.0-source/gcc/fortran/trans-decl.c:4941
0x6bd202 do_traverse_symtree
        ../../gcc-8.3.0-source/gcc/fortran/symbol.c:4179
0x6f98b3 gfc_generate_module_vars(gfc_namespace*)
        ../../gcc-8.3.0-source/gcc/fortran/trans-decl.c:5496
0x6d5459 gfc_generate_module_code(gfc_namespace*)
        ../../gcc-8.3.0-source/gcc/fortran/trans.c:2201
0x6886bb translate_all_program_units
        ../../gcc-8.3.0-source/gcc/fortran/parse.c:6112
0x6886bb gfc_parse_file()
        ../../gcc-8.3.0-source/gcc/fortran/parse.c:6328
0x6cefbf gfc_be_parse_file
        ../../gcc-8.3.0-source/gcc/fortran/f95-lang.c:204
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

end of thread, other threads:[~2022-10-13 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-85541-4@http.gcc.gnu.org/bugzilla/>
2020-06-28  0:22 ` [Bug fortran/85541] ICE with parameterized derived type (PDT) and allocate siteg at mathalacarte dot com
2022-10-13 16:30 ` aarograh at umich dot edu

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).