This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/15164] New: gfortran: trans-decl.c:411: gfc_finish_var_decl: Assertion failed
- From: "wright at esrf dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Apr 2004 08:55:23 -0000
- Subject: [Bug fortran/15164] New: gfortran: trans-decl.c:411: gfc_finish_var_decl: Assertion failed
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
f951: ../../gcc/gcc/fortran/trans-decl.c:411: gfc_finish_var_decl:
Assertion `current_function_decl == (tree) ((void *)0)' failed.
Source code (id31sum.f90) was posted to:
http://gcc.gnu.org/ml/gcc-bugs/2004-04/msg02162.html
Other fortran compilers (including g95) manage to compile the code, and I did
not figure out what the specific problem is here.
Output when compiling:
crunch:~/nuweb/bug % /users/wright/gfortran//gcc-ssa/bin/gfortran -v -save-temps
id31sum.f90
Driving: /users/wright/gfortran//gcc-ssa/bin/gfortran -v -save-temps id31sum.f90
-lgfortranbegin -lgfortran -lm -shared-libgcc
Reading specs from
/users/wright/gfortran/gcc-ssa/bin/../lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/specs
Configured with: ../gcc/configure --disable-checking --prefix=/tmp/gcc-ssa --ena
ble-languages=c,c++,f95 --with-gmp=/usr
Thread model: posix
gcc version 3.5-tree-ssa 20040423 (merged 20040414)
/users/wright/gfortran/gcc-ssa/bin/../libexec/gcc/i686-pc-linux-gnu/3.5-tree-ss
a/f951 id31sum.f90 -quiet -dumpbase id31sum.f90 -mtune=pentiumpro -auxbase id31s
um -version -o id31sum.s
GNU F95 version 3.5-tree-ssa 20040423 (merged 20040414) (i686-pc-linux-gnu)
compiled by GNU C version 3.5-tree-ssa 20040423 (merged 20040414).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
f951: ../../gcc/gcc/fortran/trans-decl.c:411: gfc_finish_var_decl: Assertion `cu
rrent_function_decl == (tree) ((void *)0)' failed.
id31sum.f90: In function `split':
id31sum.f90:73: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: gfortran: trans-decl.c:411: gfc_finish_var_decl:
Assertion failed
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wright at esrf dot fr
CC: gcc-bugs at gcc dot gnu dot org,wright at esrf dot fr
GCC build triplet:
Configured with: ../gcc/configure --disable-checking --
prefix=
GCC host triplet: Linux i686
GCC target triplet: Linux i686
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15164