This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41784] [OOP] ICE in load_derived_extensions
- From: "janus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Oct 2009 16:02:18 -0000
- Subject: [Bug fortran/41784] [OOP] ICE in load_derived_extensions
- References: <bug-41784-9410@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from janus at gcc dot gnu dot org 2009-10-21 16:02 -------
Here is a further reduced test case:
module A_mod
type :: A
end type
end module
module B_mod
use A_mod
type, extends(A) :: B
end type
end module
module C_mod
use B_mod
type :: C
end type C
end module
use C_mod, only: C
end
with a slightly different backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x00000000004ffcd5 in load_derived_extensions () at
/home/jweil/gcc45/trunk/gcc/fortran/module.c:3997
3997 gcc_assert (derived->attr.flavor == FL_DERIVED);
(gdb) bt
#0 0x00000000004ffcd5 in load_derived_extensions () at
/home/jweil/gcc45/trunk/gcc/fortran/module.c:3997
#1 0x0000000000500a26 in read_module () at
/home/jweil/gcc45/trunk/gcc/fortran/module.c:4450
#2 0x0000000000502caf in gfc_use_module () at
/home/jweil/gcc45/trunk/gcc/fortran/module.c:5500
#3 0x000000000050a5f8 in accept_statement (st=ST_USE) at
/home/jweil/gcc45/trunk/gcc/fortran/parse.c:1525
#4 0x000000000050bb61 in parse_spec (st=ST_USE) at
/home/jweil/gcc45/trunk/gcc/fortran/parse.c:2548
#5 0x000000000050d40a in parse_progunit (st=ST_USE) at
/home/jweil/gcc45/trunk/gcc/fortran/parse.c:3758
#6 0x000000000050dee9 in gfc_parse_file () at
/home/jweil/gcc45/trunk/gcc/fortran/parse.c:4192
#7 0x000000000054afa0 in gfc_be_parse_file (set_yydebug=0) at
/home/jweil/gcc45/trunk/gcc/fortran/f95-lang.c:239
#8 0x00000000009b6efd in compile_file () at
/home/jweil/gcc45/trunk/gcc/toplev.c:1049
#9 0x00000000009b91e9 in do_compile () at
/home/jweil/gcc45/trunk/gcc/toplev.c:2408
#10 0x00000000009b92aa in toplev_main (argc=2, argv=0x7fffc79cfd78) at
/home/jweil/gcc45/trunk/gcc/toplev.c:2450
#11 0x00000000005c8be7 in main (argc=2, argv=0x7fffc79cfd78) at
/home/jweil/gcc45/trunk/gcc/main.c:35
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41784