This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32945] New: [4.3 regression] ICE with initialization expressions
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2007 14:33:45 -0000
- Subject: [Bug fortran/32945] New: [4.3 regression] ICE with initialization expressions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$> cat ice.f90
MODULE EGOPS_Utilities
CONTAINS
FUNCTION dirname(fullfilename)
Character(LEN=*), Intent(In) :: fullfilename
Character(LEN=LEN(fullfilename)) :: dirname
dirname = ''
END FUNCTION
END MODULE EGOPS_Utilities
MODULE AtmoIono
CHARACTER(LEN=10), PARAMETER :: ComputeDryAtmModel = 'Dry Atm. ?'
type AtmModel
character (len=len(ComputeDryAtmModel)) :: moistDryStr
end type AtmModel
END MODULE AtmoIono
module AtmoIonoSphere
use AtmoIono
use EGOPS_Utilities
end module AtmoIonoSphere
$> gfortran-svn -g -Wall -c
ice.f90:6: internal compiler error: Segmentation fault
Please submit a full bug report,
Backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x08064163 in check_specification_function (e=<value optimized out>) at
../../../gcc/gcc/fortran/expr.c:696
696 sym = e->symtree->n.sym;
(gdb) bt
#0 0x08064163 in check_specification_function (e=<value optimized out>) at
../../../gcc/gcc/fortran/expr.c:696
#1 0x0806505d in gfc_is_constant_expr (e=0x88c2d70) at
../../../gcc/gcc/fortran/expr.c:740
#2 0x080a2482 in resolve_symbol (sym=0x88c2b10) at
../../../gcc/gcc/fortran/resolve.c:6695
#3 0x080ac99d in traverse_ns (st=0x88c3460, func=0x80a13f0 <resolve_symbol>)
at ../../../gcc/gcc/fortran/symbol.c:2875
#4 0x080ac983 in traverse_ns (st=0x88c2c30, func=0x80a13f0 <resolve_symbol>)
at ../../../gcc/gcc/fortran/symbol.c:2878
#5 0x0809da06 in resolve_types (ns=0x88ae4f0) at
../../../gcc/gcc/fortran/resolve.c:8444
#6 0x080a13cc in gfc_resolve (ns=0x88ae4f0) at
../../../gcc/gcc/fortran/resolve.c:8523
#7 0x08093720 in gfc_parse_file () at ../../../gcc/gcc/fortran/parse.c:3288
#8 0x080b8f2d in gfc_be_parse_file (set_yydebug=0) at
../../../gcc/gcc/fortran/f95-lang.c:301
#9 0x0832cf50 in toplev_main (argc=2, argv=0xbfaa2064) at
../../../gcc/gcc/toplev.c:1043
#10 0x080ffeef in main (argc=143319578, argv=0x88ae201) at
../../../gcc/gcc/main.c:35
--
Summary: [4.3 regression] ICE with initialization expressions
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: dfranke at gcc dot gnu dot org
ReportedBy: dfranke at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32945