派生类型中定义了一个可变数组和绑定类型,在调用派生类型的绑定类型时候,总是提示编译器错误。
type variable
integer, allocatable :: dimid(:)
contains
procedure :: read_var
endtype
报错:
test.f90:36:0: internal compiler error: in gfc_add_modify_loc, at fortran/trans.c:161
call get_var_ndims(var(i), fileName, var(i)%ndims)
^
Please submit a full bug report,
with preprocessed source if appropriate.
我在linux系统fortran版本
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin11.4.0/4.8.0/lto-wrapper
Target: x86_64-apple-darwin11.4.0
Configured with: ../gcc-4.8-20120603/configure --enable-languages=fortran
Thread model: posix
gcc version 4.8.0 20120603 (experimental) (GCC)
type variable
integer, allocatable :: dimid(:)
contains
procedure :: read_var
endtype
报错:
test.f90:36:0: internal compiler error: in gfc_add_modify_loc, at fortran/trans.c:161
call get_var_ndims(var(i), fileName, var(i)%ndims)
^
Please submit a full bug report,
with preprocessed source if appropriate.
我在linux系统fortran版本
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin11.4.0/4.8.0/lto-wrapper
Target: x86_64-apple-darwin11.4.0
Configured with: ../gcc-4.8-20120603/configure --enable-languages=fortran
Thread model: posix
gcc version 4.8.0 20120603 (experimental) (GCC)
