[Bug fortran/82868] New: ICE in generate_coarray_sym_init, at fortran/trans-decl.c:5203

2017-11-06 Thread gs...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With file ./gcc/testsuite/gfortran.dg/associate_26.f90 : $ gfortran-8-20171105 -c associate_26.f90 -fcoarray=single $ $ gfortran-8-20171105 -c

[Bug fortran/65428] ICE on nest array constructor

2017-11-07 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65428 G. Steinmetz changed: What|Removed |Added CC||gs...@t-online.de --- Comment #5 from G

[Bug fortran/82884] New: ICE in gfc_resolve_character_array_constructor, at fortran/array.c:2069

2017-11-07 Thread gs...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Derived from a modified legacy code : $ cat z1.f90 program p character :: c(4) = [1h(, 1hi, 1h4, 1h)] end $ gfortran-8-20171105 -c

[Bug fortran/82886] New: ICE with -finit-derived in gfc_conv_expr, at fortran/trans-expr.c:7807

2017-11-07 Thread gs...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With file ./gcc/testsuite/gfortran.dg/c_ptr_tests_9.f03 : $ gfortran-8-20171105 -c c_ptr_tests_9.f03 -finit-derived c_ptr_tests_9.f03:22

[Bug fortran/82886] ICE with -finit-derived in gfc_conv_expr, at fortran/trans-expr.c:7807

2017-11-07 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82886 --- Comment #1 from G. Steinmetz --- A possible reduction : $ cat z1.f90 program p use, intrinsic :: iso_c_binding, only: c_ptr, c_null_ptr type t type(c_ptr) :: my_c_ptr end type contains subroutine sub0() bind(c) type(t), tar

[Bug fortran/82904] New: ICE in make_ssa_name_fn, at tree-ssanames.c:261

2017-11-08 Thread gs...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Together with -fcoarray=lib at -Os, -O1 or higher : $ cat z1.f90 program p save character(:), allocatable :: x character(:), allocatable :: y[:] allocate (character(3

[Bug fortran/82904] ICE in make_ssa_name_fn, at tree-ssanames.c:261

2017-11-08 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82904 --- Comment #1 from G. Steinmetz --- Without this explicit "save" in above source, an ICE only occurs with additional option -fno-automatic (which implies "save") : $ cat z2.f90 program p character(:), allocatable :: x character(:), allo

[Bug fortran/82969] New: ICE in gfc_class_vptr_get, at fortran/trans-expr.c:211

2017-11-13 Thread gs...@t-online.de
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- This variant does not compile with snapshot from 20171112 : $ cat z1.f90 module m type t real, allocatable :: x(:) procedure(f), nopass, pointer :: g end

[Bug fortran/82969] ICE in gfc_class_vptr_get, at fortran/trans-expr.c:211

2017-11-13 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82969 --- Comment #1 from G. Steinmetz --- These variants compile : $ cat z2.f90 module m type t real, allocatable :: x(:) procedure(f), nopass, pointer :: g end type contains function f() result(z) class(t), pointer :: z

[Bug fortran/82970] New: ICE in vptr_field_get, at fortran/trans-expr.c:264

2017-11-13 Thread gs...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Wrapping source "x" : $ cat z1.f90 program p type t end type class(t), allocatable :: x(:)[:] class(t), allocatable :: z(:) allocate (x(2)[*]) a

[Bug fortran/82970] ICE in vptr_field_get, at fortran/trans-expr.c:264

2017-11-13 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82970 --- Comment #1 from G. Steinmetz --- This variant compiles, of course : $ cat z3.f90 program p type t end type class(t), allocatable :: x(:)[:] class(t), allocatable :: z(:) allocate (x(2)[*]) allocate (z, source=x) end

[Bug fortran/82971] New: ICE in gfc_find_derived_vtab, at fortran/class.c:2214 ...

2017-11-13 Thread gs...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Another issue : $ cat z1.f90 module m type t integer :: n end type class(t), target :: z type t2 class(t), pointer :: x =>

[Bug fortran/82971] ICE in gfc_find_derived_vtab, at fortran/class.c:2214 ...

2017-11-13 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82971 --- Comment #1 from G. Steinmetz --- $ cat z2.f90 module m type t end type class(t), target :: z type t2 class(t), pointer :: x => z end type end $ gfortran-8-20171112 -c z2.f90 f951: internal compiler error: Segmentation

[Bug fortran/82972] ICE with -finit-derived in gfc_conv_structure, at fortran/trans-expr.c:7733 (and others)

2017-11-13 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82972 --- Comment #1 from G. Steinmetz --- Files from catalog ./gcc/testsuite/gfortran.dg : pdt_10.f03 pdt_2.f03 $ gfortran-8-20171105 -finit-derived -c pdt_2.f03 $ gfortran-8-20171112 -finit-derived -c pdt_2.f03 pdt_2.f03:25:0: end subrou

[Bug fortran/82972] New: ICE with -finit-derived in gfc_conv_structure, at fortran/trans-expr.c:7733 (and others)

2017-11-13 Thread gs...@t-online.de
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- There are a few issues with -finit-derived, probably a consequence of pr82886. Please feel free to open separate PRs if

[Bug fortran/82972] ICE with -finit-derived in gfc_conv_structure, at fortran/trans-expr.c:7733 (and others)

2017-11-13 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82972 --- Comment #2 from G. Steinmetz --- Files from catalog ./gcc/testsuite/gfortran.dg : pdt_3.f03 pdt_7.f03 $ gfortran-8-20171105 -finit-derived -c pdt_7.f03 $ gfortran-8-20171112 -finit-derived -c pdt_7.f03 pdt_7.f03:20:0: end internal

[Bug fortran/82992] New: ICE in create_int_parameter_array, at fortran/module.c:6586

2017-11-14 Thread gs...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With invalid code : $ cat z1.f90 subroutine sub (x) use iso_fortran_env, only: x => character_kinds end $ gfortran-8-20171112 -c z1.f90 f

[Bug fortran/82993] New: ICE free_expr0, at fortran/expr.c:445

2017-11-14 Thread gs...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With a wrong parameter definition : $ cat z1.f90 program p type t real :: a(3) end type type(t), parameter :: z = 1 print *, z%a(1) print *, z%a end $ gfortran-8

[Bug fortran/82993] ICE in free_expr0, at fortran/expr.c:445

2017-11-14 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82993 G. Steinmetz changed: What|Removed |Added Summary|ICE free_expr0, at |ICE in free_expr0, at |

[Bug fortran/82994] New: ICE in gfc_match_deallocate, at fortran/match.c:4478

2017-11-14 Thread gs...@t-online.de
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With invalid code (no pointer/allocatable attribute, nor allocated) : $ cat z1.f90 program p type t end type class(t) :: x deallocate (x) end $ gfortran-8

[Bug fortran/82994] ICE in gfc_match_deallocate, at fortran/match.c:4478

2017-11-14 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82994 --- Comment #1 from G. Steinmetz --- Now allocated, but still not declared allocatable : (here gcc-chk was configured with --enable-checking=yes) $ cat z2.f90 program p type t end type class(t) :: x allocate (x) deallocate (x) e

[Bug fortran/83076] New: [8 Regression] ICE in gfc_deallocate_scalar_with_status, at fortran/trans.c:1598

2017-11-20 Thread gs...@t-online.de
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With testcase from pr78781 comment 2 : $ gfortran-8-20171029 -c z2.f90 -fcoarray=lib $ $ gfortran-8

[Bug fortran/83078] New: ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1110

2017-11-20 Thread gs...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With an undefined value "n" : $ cat z1.f90 program p implicit none type t integer :: a(n) end type t type(t) :: x = t([

[Bug fortran/83078] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1110

2017-11-20 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83078 --- Comment #1 from G. Steinmetz --- Detected without "implicit none" : $ cat z2.f90 program p type t integer :: a(n) end type t type(t) :: x = t([1, 2]) end $ gfortran-8-20171119 -c z2.f90 z2.f90:3:19: integer :: a(n)

[Bug fortran/83079] New: ICE in gfc_widechar_to_char, at fortran/scanner.c:198

2017-11-20 Thread gs...@t-online.de
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With this snippet : $ cat z1.f90 program p print *, transfer(4_'xy', [4_'a']) end $ gfortran-8-20171119 -c z1.f90 f951: internal compiler error: in

[Bug fortran/83079] ICE in gfc_widechar_to_char, at fortran/scanner.c:198

2017-11-20 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83079 --- Comment #1 from G. Steinmetz --- While these variants compile : $ cat z3.f90 program p print *, transfer('xy', ['a']) end $ cat z4.f90 program p print *, transfer(4_'xy', [4_'ab']) end $ cat z5.f90 program p print *, transfer(4_'

[Bug fortran/83092] New: ICE in gfc_apply_init, at fortran/expr.c:4228

2017-11-21 Thread gs...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Follow-up of pr78686 (where ICE is gone since about a month ago) : $ cat z1.f90 program p type t integer :: n = 0 end type type t2 character :: c = t() end

[Bug fortran/83092] ICE in gfc_apply_init, at fortran/expr.c:4228

2017-11-21 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83092 --- Comment #1 from G. Steinmetz --- Alternatives : $ cat z2.f90 program p type t end type type t2 character :: c(1) = [t()] end type end $ cat z3.f90 program p type t integer :: a = 1 character :: c = t()

[Bug fortran/83093] New: ICE in fold_convert_loc, at fold-const.c:2266

2017-11-21 Thread gs...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With invalid code, down to at least 4.8 : $ cat z1.f90 program p character(:), allocatable :: z allocate (character(a) :: z) end $ cat z2.f90 program p real :: a = 2

[Bug fortran/83093] ICE in fold_convert_loc, at fold-const.c:2266

2017-11-21 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83093 --- Comment #1 from G. Steinmetz --- These variants are silently accepted : $ cat z4.f90 program p character(:), allocatable :: z allocate (character(z) :: z) end $ cat z5.f90 program p character(:), allocatable :: z allocate (ch

[Bug fortran/83094] New: ICE in ipa_modify_formal_parameters, at ipa-param-manipulation.c:105

2017-11-21 Thread gs...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With a mixture : $ cat z1.f90 integer function f (a, b) integer :: a, b[*] !$omp declare simd f = a + b end $ gfortran-8-20171119

[Bug fortran/78238] [7/8 Regression] [OOP] ICE: verify_gimple failed, with -fdefault-integer-8

2017-11-27 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78238 G. Steinmetz changed: What|Removed |Added CC||gs...@t-online.de --- Comment #9 from G

[Bug fortran/83183] New: Out of memory with option -finit-derived

2017-11-27 Thread gs...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With ./gcc/testsuite/gfortran.dg/move_alloc_17.f90 or this reduction : $ cat z1.f90 program p type :: linked_list type(linked_list), allocatable :: link integer :: value end

[Bug fortran/83184] New: Out of memory or ICE with option -fdec

2017-11-27 Thread gs...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With invalid code and option -fdec-structure or -fdec : $ cat z1.f90 program p structure /s/ integer n(..) /1/ end structure end $ cat z2.f90 program p structure /s

[Bug c/83185] New: ICE with -fsanitize=address in build_simple_mem_ref_loc, at tree.c:4696

2017-11-27 Thread gs...@t-online.de
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With option -fsanitize=address and -Os|1+ : $ cat z1.c #include void f (int i, ...) { va_list aps[g()]; va_start (aps[4], i); } $ gcc

[Bug fortran/83196] New: ICE in gfc_build_compare_string, at fortran/trans-expr.c:3609 (and others)

2017-11-28 Thread gs...@t-online.de
: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- This function reference in "s" misses obligatory parentheses : $ cat z1.f90 program p call s contains subroutine

[Bug fortran/83196] ICE in gfc_build_compare_string, at fortran/trans-expr.c:3609 (and others)

2017-11-28 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83196 --- Comment #1 from G. Steinmetz --- With reversed order, i.e. definition of "f" first : $ cat z2.f90 program p call s contains character(3) function f() f = 'abc' end subroutine s if ( f /= 'abc' ) call abort end en

[Bug fortran/83196] ICE in gfc_build_compare_string, at fortran/trans-expr.c:3609 (and others)

2017-11-28 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83196 --- Comment #2 from G. Steinmetz --- Slightly modified : $ cat z3.f90 program p call s contains subroutine s if ( f /= '' ) call abort end character(3) function f() f = '' end end $ gfortran-8-20171126 -c z3.f90 -O

[Bug c/83197] New: ICE in strip_float_extensions, at tree.c:11935

2017-11-28 Thread gs...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Depending on function, at different optimization levels : $ cat z1.c double sqrt (); void f (float a) { a = sqrt (); } $ cat z2.c double sin (); void f (float a) { a = sin

[Bug c/83198] New: ICE internal compiler error: in format_floating, at gimple-ssa-sprintf.c:1900

2017-11-28 Thread gs...@t-online.de
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With this snippet : $ cat z1.c void f (int x) { char d[40]; int a = __builtin_sprintf (d, "%.a", x, 1.0

[Bug fortran/83274] New: [PDT] ICE in delete_root and missing error

2017-12-04 Thread gs...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- One remaining issue is that a PDT definition statement cannot have an additional component-spec-list or a second type-param-name-list. $ cat z1.f90 program p type t(a)(b

[Bug fortran/83274] [PDT] ICE in delete_root and missing error

2017-12-04 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83274 G. Steinmetz changed: What|Removed |Added Blocks||82173 --- Comment #1 from G. Steinmetz -

[Bug fortran/83275] New: [PDT] ICE in get_pdt_constructor, at fortran/resolve.c:1185 (and others)

2017-12-04 Thread gs...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Related to pr83274, in order to avoid an overloaded PR. According to f2008 4.5.3.1 and 1.4.3, a type-param-name-list in a PDT definition

[Bug fortran/83275] [PDT] ICE in get_pdt_constructor, at fortran/resolve.c:1185 (and others)

2017-12-04 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83275 G. Steinmetz changed: What|Removed |Added Blocks||82173 --- Comment #1 from G. Steinmetz -

[Bug fortran/83275] [PDT] ICE in get_pdt_constructor, at fortran/resolve.c:1185 (and others)

2017-12-04 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83275 --- Comment #2 from G. Steinmetz --- $ cat z5.f90 program p type t(a) allocate (a) end type end $ gfortran-8-20171203 -c z5.f90 f951: internal compiler error: Segmentation fault 0xb6a96f crash_signal ../../gcc/toplev.c:325

[Bug c/83276] New: ICE in pre_and_rev_post_order_compute, at cfganal.c:1050

2017-12-04 Thread gs...@t-online.de
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- This snippet together with -fopenmp : $ cat z1.c int f () { int i; #pragma omp parallel for for (i = 0; i < 4; ++i) __builtin_return (0); } $

<    3   4   5   6   7   8