This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/70524] [5/6/7 Regression] ICE when using -frepack-arrays -Warray-temporaries
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 28 Jun 2016 18:31:13 +0000
- Subject: [Bug fortran/70524] [5/6/7 Regression] ICE when using -frepack-arrays -Warray-temporaries
- Auto-submitted: auto-generated
- References: <bug-70524-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70524
Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gerhard.steinmetz.fortran@t
| |-online.de
--- Comment #5 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
There is a different ICE for a subset of the above group.
A selection of affected files from gfortran testsuite :
character_array_constructor_1.f90
char_pack_2.f90
missing_optional_dummy_6.f90
optional_absent_1.f90
pr43793.f90
pr48636.f90
whole_file_9.f90
For example :
$ gfortran-7-20160626 -frepack-arrays -Warray-temporaries -c pr43793.f90
pr43793.f90:11:31:
rq(1:rcount(pos),pos) = rs(1:rcount(pos),pos)
1
Warning: Creating array temporary at (1) [-Warray-temporaries]
pr43793.f90:5:0:
subroutine sparse_alltoall (rs, rq, rcount)
in linemap_position_for_loc_and_offset, at libcpp/line-map.c:897
0x138c523 linemap_position_for_loc_and_offset(line_maps*, unsigned int,
unsigned int)
../../libcpp/line-map.c:897
0x6822fc gfc_format_decoder
../../gcc/fortran/error.c:943
0x13771f8 pp_format(pretty_printer*, text_info*)
../../gcc/pretty-print.c:643
0x13720f0 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
../../gcc/diagnostic.c:827
0x68205f gfc_warning
../../gcc/fortran/error.c:792
0x682ce6 gfc_warning(int, char const*, ...)
../../gcc/fortran/error.c:823
0x72a291 gfc_trans_dummy_array_bias(gfc_symbol*, tree_node*,
gfc_wrapped_block*)
../../gcc/fortran/trans-array.c:6177
0x7466ec gfc_trans_deferred_vars(gfc_symbol*, gfc_wrapped_block*)
../../gcc/fortran/trans-decl.c:4268
0x749223 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6275
0x71ea79 gfc_generate_module_code(gfc_namespace*)
../../gcc/fortran/trans.c:2056
0x6d4bfd translate_all_program_units
../../gcc/fortran/parse.c:5830
0x6d4bfd gfc_parse_file()
../../gcc/fortran/parse.c:6049
0x717142 gfc_be_parse_file
../../gcc/fortran/f95-lang.c:201