This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48588] [4.6/4.7 Regression] ICE (segfault) in gfc_get_nodesc_array_type
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 13 Apr 2011 10:25:54 +0000
- Subject: [Bug fortran/48588] [4.6/4.7 Regression] ICE (segfault) in gfc_get_nodesc_array_type
- Auto-submitted: auto-generated
- References: <bug-48588-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48588
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
CC| |burnus at gcc dot gnu.org
Target Milestone|--- |4.6.1
Summary|internal compiler error |[4.6/4.7 Regression] ICE
|compiling a library |(segfault) in
| |gfc_get_nodesc_array_type
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-04-13 10:25:37 UTC ---
Valgrind shows:
==24723== Invalid read of size 4
==24723== at 0x5C3338: gfc_get_nodesc_array_type (trans-types.c:1444)
==24723== by 0x5C6DCC: gfc_sym_type (trans-types.c:2009)
==24723== by 0x5C646C: gfc_get_function_type (trans-types.c:2607)
==24723== by 0x584B0C: build_function_decl (trans-decl.c:1775)
==24723== by 0x586666: gfc_create_function_decl (trans-decl.c:2340)
==24723== by 0x587B4E: gfc_get_extern_function_decl (trans-decl.c:1582)
==24723== by 0x59C93F: gfc_conv_procedure_call (trans-expr.c:1689)
==24723== by 0x5B8C06: gfc_trans_call (trans-stmt.c:380)
The latter is:
expr = as->lower[n];
if (expr->expr_type == EXPR_CONSTANT)
Thus, it looks as if as->lower[n] == NULL.