https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77941
Bug ID: 77941 Summary: ICE in expand_expr_addr_expr_1, at expr.c:7805 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- ICEs with "value" attribute, down to at least 4.8 : $ cat z1.f90 program p print *, f(2_8**32+1) contains function f(n) integer(8), value :: n character(n) :: f f = 'a' end end $ gfortran-7-20161009 z1.f90 z1.f90:2:0: print *, f(2_8**32+1) Error: size of variable 'str.1' is too large z1.f90:2:0: print *, f(2_8**32+1) internal compiler error: in expand_expr_addr_expr_1, at expr.c:7805 0x918987 expand_expr_addr_expr_1 ../../gcc/expr.c:7805 0x90c145 expand_expr_addr_expr ../../gcc/expr.c:7918 0x90c145 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:10958 0x7f5741 expand_normal ../../gcc/expr.h:285 0x7f5741 precompute_register_parameters ../../gcc/calls.c:886 0x7f5741 expand_call(tree_node*, rtx_def*, int) ../../gcc/calls.c:3257 0x90b88c expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:10736 0x809192 expand_expr ../../gcc/expr.h:279 0x809192 expand_call_stmt ../../gcc/cfgexpand.c:2666 0x809192 expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3579 0x809192 expand_gimple_stmt ../../gcc/cfgexpand.c:3745 0x80a80e expand_gimple_basic_block ../../gcc/cfgexpand.c:5752 0x810996 execute ../../gcc/cfgexpand.c:6363