[Bug fortran/71704] New: ICE with -fopenmp and some omp constructs

2016-06-29 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With some "empty" openmp constructs : $ cat z1.f90 real function f() !$omp barrier end $ gfortran-6 -fopenmp -c z1.f90 f951: internal comp

[Bug fortran/71705] New: ICE in lower_omp_target, at omp-low.c:16136

2016-06-29 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With a missing save attribute : $ cat z1.f90 subroutine s real :: x x = 0.0 !$omp target update to(x) !$omp target x = x + 1.0 !$omp end target

[Bug fortran/71705] ICE in lower_omp_target, at omp-low.c:16136

2016-06-29 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71705 --- Comment #1 from Gerhard Steinmetz --- Compiles with save status : $ cat z2.f90 subroutine s real, save :: x !!$omp declare target(x) x = 0.0 !$omp target update to(x) !$omp target x = x + 1.0 !$omp end target end

[Bug fortran/71706] New: [7 Regression] ICE on using sync images with integer(kind<>4), with -fcoarray=lib -fcheck=bounds

2016-06-29 Thread gerhard.steinmetz.fort...@t-online.de
FIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Together with -fcheck=bounds or -fcheck=all : $ cat z1.f90 program p integer ::

[Bug fortran/71706] [7 Regression] ICE on using sync images with integer(kind<>4), with -fcoarray=lib -fcheck=bounds

2016-06-29 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71706 --- Comment #1 from Gerhard Steinmetz --- $ cat z2.f90 program p sync images (1_1) sync images (1_2) sync images (1_4) sync images (1_8) sync images (1_16) end $ gfortran-7-20160626 -fcoarray=single -fcheck=all -c z2.f90 $ gfor

[Bug fortran/68566] ICE on using unusable array in reshape (double free or corruption)

2016-06-30 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68566 --- Comment #11 from Gerhard Steinmetz --- Another constellation (appearing legal) : $ cat zz1.f90 program p integer :: n(2) = [2,1] print *, reshape ([1,2,3,4,5,6], [2,4], [0,0], [2,1]) print *, reshape ([1,2,3,4,5,6], [2,4], [0,0],

[Bug fortran/66244] [4.9/5/6/7 Regression] ICE on assigning a value to a pointer variable

2016-07-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66244 --- Comment #4 from Gerhard Steinmetz --- Compiling slightly modified example from comment 0 : $ cat z4.f90 program p integer, target :: a(3)[*] integer, pointer :: z => a(3) z = 0 print *, z end $ gfortran-7-20160703 -fcoarray=s

[Bug fortran/67883] ICE on empty array constructor of character function

2016-07-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67883 --- Comment #2 from Gerhard Steinmetz --- Another group of examples. First case is working in a sufficient manner. Concatenating two empty hulls (zero len and size, respectivly) gives an empty hull as result again. $ cat zz1.f90 program p

[Bug fortran/67883] ICE on empty array constructor of character function

2016-07-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67883 --- Comment #3 from Gerhard Steinmetz --- For the following cases, every line produces an ICE : $ cat zz5.f90 program p character(*), parameter :: x1(*) = [character(*) ::] // [character(0) ::] character(*), parameter :: x2(*) = [charac

[Bug fortran/65173] ICE while compiling wrong code

2016-07-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65173 Gerhard Steinmetz changed: What|Removed |Added CC||gerhard.steinmetz.fortran@t

[Bug fortran/47425] Array constructor with type-spec: Fails with more complicated length type expr

2016-07-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47425 Gerhard Steinmetz changed: What|Removed |Added CC||gerhard.steinmetz.fortran@t

[Bug fortran/47425] Array constructor with type-spec: Fails with more complicated length type expr

2016-07-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47425 --- Comment #4 from Gerhard Steinmetz --- Some simplifications : $ cat z1.f90 program p character(3) :: x integer :: n = 3 print *, [character(len(x(1:n))) :: 'a'] end $ gfortran-7-20160703 z1.f90 z1.f90:4:0: print *, [characte

[Bug fortran/71758] New: ICE in verify_gimple_in_cfg, at tree-cfg.c:5212

2016-07-04 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With example .../libgomp/testsuite/libgomp.fortran/examples-4/device-2.f90 : $ gfortran-7-20160703 -fdefault-integer-8 -fopenmp device-2.f90 device-2.f90:5:0

[Bug fortran/71759] New: ICE in enforce_single_undo_checkpoint, at fortran/symbol.c:3478

2016-07-04 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Typo, e.g. for intrinsic functions with a non-scalar argument : $ cat z1.f90 program p print *, abs([real(1)/9., real(2

[Bug fortran/71759] ICE in enforce_single_undo_checkpoint, at fortran/symbol.c:3478

2016-07-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71759 --- Comment #1 from Gerhard Steinmetz --- Another typo : $ cat z2.f90 program p print *, [character((100)) :: 'x'] print *, [character((1,0)) :: 'x'] end $ gfortran-6 z2.f90 z2.f90:3:23: print *, [character((1,0)) :: 'x']

[Bug fortran/71758] ICE in verify_gimple_in_cfg, at tree-cfg.c:5212

2016-07-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71758 --- Comment #2 from Gerhard Steinmetz --- Reduced to mismatch in device(.), without option -fdefault* : $ cat z1.f90 program p use omp_lib, only: omp_is_initial_device integer(8), parameter :: n = 10 integer(8) :: i logical(8) :: offlo

[Bug fortran/71764] compiler internal error: segmentation fault

2016-07-05 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71764 Gerhard Steinmetz changed: What|Removed |Added CC||gerhard.steinmetz.fortran@t

[Bug fortran/71764] compiler internal error: segmentation fault

2016-07-05 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71764 --- Comment #5 from Gerhard Steinmetz --- Some other variants : $ cat zz1.f90 program p use iso_c_binding, only: c_ptr, c_null_ptr, c_ptr type(c_ptr) :: c c = c_null_ptr end $ cat zz3.f90 program p use iso_c_binding, only: c_ptr

[Bug fortran/70914] ICE in gimplify_var_or_parm_decl, at gimplify.c:1851 (and endless compilation)

2016-07-06 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70914 --- Comment #3 from Gerhard Steinmetz --- Indeed, I can confirm that all examples from comment 0 are now working (and compiling without an ICE) when using gfortran-7-20160703. Though, if not covered elsewhere, only one remaining problem : $

[Bug fortran/71859] New: ICE on same variable/subroutine name (verify_gimple failed)

2016-07-13 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- When using the same name for a variable and a subroutine (invalid), experimental (--enable-checking=yes) versions 7, 6 and maybe

[Bug fortran/71859] ICE on same variable/subroutine name (verify_gimple failed)

2016-07-13 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71859 --- Comment #1 from Gerhard Steinmetz --- Somehow detected when being a bit more explicit : $ cat z3.f90 program p implicit none real :: s = 1.0 real :: x call s(1) x = abs(s) print *, x end subroutine s(n) implicit none

[Bug fortran/71859] ICE on same variable/subroutine name (verify_gimple failed)

2016-07-13 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71859 --- Comment #2 from Gerhard Steinmetz --- For completeness another ICE, only with dedicated option -ff2c. $ gfortran-6 -ff2c z1.f90 z1.f90:2:0: call s(1) internal compiler error: in fold_convert_loc, at fold-const.c:2292 $ gfortran-7-

[Bug fortran/71860] New: ICE on pointing to null(mold), verify_gimple failed

2016-07-13 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- ICE with experimental (--enable-checking=yes) versions 7, 6, and maybe older. $ cat z1.f90 program p class(*), pointer :: z z => null(z)

[Bug fortran/70842] [4.9/5/6/7 Regression] internal compiler error with character members within a polymorphic pointer

2016-07-13 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70842 Gerhard Steinmetz changed: What|Removed |Added CC||gerhard.steinmetz.fortran@t

[Bug fortran/71861] New: ICE in write_symbol(): bad module symbol

2016-07-13 Thread gerhard.steinmetz.fort...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- An interface with an alienated intrinsic name (or any other) : $ cat z1.f90 module m intrinsic abs abstract interface function abs(x) real :: abs

[Bug fortran/71861] ICE in write_symbol(): bad module symbol

2016-07-13 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71861 --- Comment #1 from Gerhard Steinmetz --- Side note : $ cat z0.f90 module m abstract interface function abs(x) real :: abs, x end end interface end $ gfortran-6 -Wall z0.f90 z0.f90:3:6: function abs(x)

[Bug fortran/71862] New: ICE in gfc_add_component_ref, at fortran/class.c:241

2016-07-13 Thread gerhard.steinmetz.fort...@t-online.de
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Release versions (5, 6, 7) are bailed out, with no backtrace. Experimental versions (6, 7 tested) give a backtrace. $ cat z1.f90 program p type t

[Bug fortran/71862] ICE in gfc_add_component_ref, at fortran/class.c:241

2016-07-13 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71862 --- Comment #1 from Gerhard Steinmetz --- Works when "class" is changed to "type" ... $ cat z2.f90 program p type t integer :: n = 0 integer, pointer :: q => null() end type type(t) :: x print *, associated(x%q) x =

[Bug fortran/71883] New: ICE in identical_array_ref, at fortran/dependency.c:104

2016-07-14 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- ICE on rank mismatch or typo with experimental (--enable-checking=yes) versions 7, 6, and maybe older. No ICE for release versions

[Bug fortran/71884] New: ICE in gfc_trans_allocate, at fortran/trans-stmt.c:5582 and :5698

2016-07-14 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With these snippets : $ cat z1.f90 program p class(*), allocatable :: x allocate (x, source=null()) end $ cat z2

[Bug fortran/71884] ICE in gfc_trans_allocate, at fortran/trans-stmt.c:5582 and :5698

2016-07-14 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71884 --- Comment #1 from Gerhard Steinmetz --- Another source position with obviously invalid code : $ cat za.f90 program p character(:), allocatable :: z allocate (character(*) :: z) end $ gfortran-7-20160710 za.f90 za.f90:3:0: alloca

[Bug fortran/71883] ICE in identical_array_ref, at fortran/dependency.c:104

2016-07-14 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71883 --- Comment #2 from Gerhard Steinmetz --- Runtime behavior : $ cat y1.f90 program p character(3), allocatable :: z(:,:) z(1:2,1:2) = 'abc' z(2,1) = z(1,2) z(2,1) = z(1,2) end $ gfortran-6 -g -O0 -Wall -fcheck=all -fno-frontend-

[Bug fortran/71883] ICE in identical_array_ref, at fortran/dependency.c:104

2016-07-14 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71883 --- Comment #1 from Gerhard Steinmetz --- Backup tests, analogous backtrace : $ cat z2.f90 program p character(:), allocatable :: z(:,:) z(1:2,1:2) = 'abc' z(2,1) = z(12) z(21) = z(1,2) end $ cat z3.f90 program p character(3)

[Bug fortran/71862] [4.9/5/6/7 Regression] ICE in gfc_add_component_ref, at fortran/class.c:241

2016-07-15 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71862 --- Comment #5 from Gerhard Steinmetz --- More test files : $ cat z5.f90 program p type t integer :: n = 0 integer, pointer :: q => null() end type type(t) :: x print *, associated(x%q) x = f() print *, associated

[Bug fortran/71894] New: ICE in gfc_add_component_ref, at fortran/class.c:227

2016-07-15 Thread gerhard.steinmetz.fort...@t-online.de
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Should also been taken into account, in addition to pr71862 : $ cat z1.f90 program p type t integer :: n end type type(t) :: x class(t

[Bug fortran/71894] ICE in gfc_add_component_ref, at fortran/class.c:227

2016-07-15 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71894 --- Comment #1 from Gerhard Steinmetz --- A variation : $ cat za1.f90 program p type t end type class(t) :: x class(t), allocatable :: y select type (y) type is (t) y = x end select end

[Bug fortran/71895] New: ICE in gfc_compare_derived_types, at fortran/interface.c:520

2016-07-15 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Eventually cross-linked with pr71862, pr71894 : $ cat z1.f90 program p type t integer :: n end type type(t

[Bug fortran/71935] New: ICE is_c_interoperable(): gfc_simplify_expr failed

2016-07-19 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With an out of bounds error : (no ICE with 4.8.3) $ cat z1.f90 program p use iso_c_binding character(len=1, kind=c_char), parameter :: z(2) = &#

[Bug fortran/71936] New: ICE in wide_int_to_tree, at tree.c:1487

2016-07-19 Thread gerhard.steinmetz.fort...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Looking at "class" and 4 combinations allocatable|pointer, the following cases give an ICE with gfortran 7 and 6 (not with 5, 4.9, 4.8). $ cat z1.f90 program

[Bug fortran/71936] ICE in wide_int_to_tree, at tree.c:1487

2016-07-19 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71936 --- Comment #1 from Gerhard Steinmetz --- These other two cases produce an related ICE : $ cat z3.f90 program p type t end type class(t), pointer :: x(:) allocate (x, mold=f()) deallocate (x) allocate (x, source=f()) contains

[Bug fortran/71936] ICE in wide_int_to_tree, at tree.c:1487

2016-07-19 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71936 --- Comment #2 from Gerhard Steinmetz --- To get the whole picture it's necessary to take a look at four analogous cases with "type" instead of "class". They compile without an error (v6/v7), but occationally run for a long time (y3/y4). $ ca

[Bug fortran/72698] ICE in lhd_incomplete_type_error, at langhooks.c:205

2016-07-26 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72698 --- Comment #1 from Gerhard Steinmetz --- This variant seems to work : $ cat z3.f90 program p character(:), allocatable :: z allocate (z, source=repeat('', 4)) print *, len(z), ' >>' // z // '<<' end $ gfortran-7-20160724 z3.f90 $

[Bug fortran/72699] ICE in gfc_check_dependency, at fortran/dependency.c:1257

2016-07-26 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72699 --- Comment #1 from Gerhard Steinmetz --- No ICE without explicit "implicit none". But of course again with added option -fimplicit-none. $ cat z2.f90 function f() result(z) character(:), allocatable :: z h = z(1) z(1) = h end

[Bug fortran/72699] New: ICE in gfc_check_dependency, at fortran/dependency.c:1257

2016-07-26 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- ICE with 7, 6 (releases bailout), not with 5.4, 4.9 and 4.8. Invalid code, with "implicit none" : $ cat z1.f90

[Bug fortran/72698] New: ICE in lhd_incomplete_type_error, at langhooks.c:205

2016-07-26 Thread gerhard.steinmetz.fort...@t-online.de
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- ICE with 7, 6, 5 (bailout with official releases). Working with 4.9 and 4.8. Valid code with a zero-length input string : $ cat z1.f90 module m contains

[Bug fortran/72714] New: ICE in gfc_array_init_size, at fortran/trans-array.c:5235

2016-07-27 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Invalid with a missing lower bound : $ cat z1.f90 program p integer, allocatable :: z(:)[:,:] allocate (z(2)[:3,*]) end

[Bug fortran/72714] ICE in gfc_array_init_size, at fortran/trans-array.c:5235

2016-07-27 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72714 --- Comment #1 from Gerhard Steinmetz --- Correct variants, for completeness : $ cat z2.f90 program p integer, allocatable :: z(:)[:,:] allocate (z(2)[3,*]) end $ cat z3.f90 program p integer, allocatable :: z(:)[:,:] allocate (z(

[Bug fortran/72715] New: ICE in gfc_trans_omp_do, at fortran/trans-openmp.c:3164

2016-07-27 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With this combination : $ cat z1.f90 program p integer :: i !$acc loop do concurrent (i=1:3) end do end $ gfortran-7

[Bug fortran/72716] New: ICE in gfc_resolve_omp_declare_simd, at fortran/openmp.c:5156

2016-07-27 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- The error message tells the story : $ cat z1.f90 block data !$omp declare simd (z) end block data $ gfortran-7-20160724

[Bug fortran/72743] New: ICE in get_constraint_for_ssa_var, at tree-ssa-structalias.c:2958

2016-07-28 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Not with -O1, but with optimization level -Os, -O2 or higher. Seen with 6 an 7. $ cat z1.f90 program p integer

[Bug fortran/72744] New: ICE in verify_ssa, at tree-ssa.c:1039

2016-07-28 Thread gerhard.steinmetz.fort...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Using -fopenmp together with -O2|-O3 and -fstack-arrays or with -Ofast alone for a test similar to pr49792 and pr71687 hits 7 and older (also related to pr69281). $ cat

[Bug fortran/72744] ICE in verify_ssa, at tree-ssa.c:1039

2016-07-28 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72744 --- Comment #1 from Gerhard Steinmetz --- As known, case above works with "workshare" : $ cat z2.f90 program p integer, parameter :: n = 20 integer :: i, z(n), h(n) z = [(i, i=1,n)] h = [(i, i=n,1,-1)] call sub (n, h) if ( a

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

2016-08-01 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- ICE with valid examples and experimental (--enable-checking=yes) version 7 from 20160731 at -Os, -O1 or higher. $ cat z1.f90 program p type t class

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

2016-08-01 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72770 --- Comment #1 from Gerhard Steinmetz --- Compiles and works without character branch (type is). $ cat z3.f90 program p type t class(*), allocatable :: q(:) end type type(t) :: z integer :: a(3) = [1, 2, 3] real :: c(3) =

[Bug fortran/67542] ICE in gfc_emit_parameter_debug_info, at fortran/trans-decl.c:4947 and :4945

2016-08-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67542 Gerhard Steinmetz changed: What|Removed |Added Summary|ICE on initializing type|ICE in |variable w

[Bug fortran/68439] ICE in alloc_scalar_allocatable_for_subcomponent_assignment, at fortran/trans-expr.c:6711

2016-08-22 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68439 --- Comment #2 from Gerhard Steinmetz --- ICE is completely gone for all tested constellations with gcc-Version 7.0.0 20160821 (experimental) (GCC)

[Bug fortran/68567] ICE on using wrong defined arrays (different cases/messages)

2016-08-22 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68567 --- Comment #3 from Gerhard Steinmetz --- ICE is gone for all tested constellations with gcc-Version 7.0.0 20160821 (experimental) (GCC)

[Bug fortran/68225] ICE with -Wrealloc-lhs-all on structure constructor with allocatable scalar component(s)

2016-08-22 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68225 --- Comment #6 from Gerhard Steinmetz --- ICE seems to be gone, z1 now and z2 still aborting at runtime. Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

[Bug fortran/69859] Non-deterministic ICEs on incomplete character declaration statement

2016-08-22 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69859 Gerhard Steinmetz changed: What|Removed |Added Version|6.0 |7.0 --- Comment #6 from Gerhard Stei

[Bug fortran/65173] ICE while compiling wrong code

2016-08-22 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65173 --- Comment #5 from Gerhard Steinmetz --- On my environment the ICE is gone only for z1.f90 and z8.f90. $ gfortran-7-20160821 z7.f90 z7.f90:5:20: character x(:) 1 Error: Array component of structure at (1) must have

[Bug fortran/69860] ICE on missing end apostrophe with character(kind=4)

2016-08-22 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69860 Gerhard Steinmetz changed: What|Removed |Added Status|RESOLVED|REOPENED Version|6.0

[Bug fortran/77325] New: ICE in gimplify_var_or_parm_decl, at gimplify.c:1933

2016-08-22 Thread gerhard.steinmetz.fort...@t-online.de
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- For versions down to at least 4.8 : $ cat z1.f90 program p character(1), parameter :: c(3) = ['a', 'b', 'c'] characte

[Bug fortran/77325] ICE in gimplify_var_or_parm_decl, at gimplify.c:1933

2016-08-22 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77325 --- Comment #1 from Gerhard Steinmetz --- Slightly simplified, indicating an uninitialized variable : $ cat z3.f90 program p character(1), parameter :: c(3) = ['a', 'b', 'c'] character(:), allocatable :: z(:) z = c(1) print *, z e

[Bug fortran/69860] ICE on missing end apostrophe with character(kind=4)

2016-08-23 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69860 --- Comment #11 from Gerhard Steinmetz --- And with "kind=4" instead of "kind=1", i.e. with testfile z1.f90 ? for n in `seq 1 1000` do gfortran-7-20160821 -O2 -mavx -c z1.f90 done > list 2>&1 grep 'internal compiler' list | wc 9465

[Bug fortran/70853] ICE on pointing to null, in gfc_add_block_to_block, at fortran/trans.c:1599

2016-08-23 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70853 --- Comment #3 from Gerhard Steinmetz --- Another testcase : $ cat z7.f90 program p integer, parameter :: m = 2, n = 3 real, target :: a(m*n) real, pointer :: z(:,:) => null() z(1:m,1:n) => null() end $ gfortran-7-20160821 z7.f90

[Bug fortran/68567] ICE on using wrong defined arrays (different cases/messages)

2016-08-23 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68567 --- Comment #5 from Gerhard Steinmetz --- > We must be using drastically different compilers. No, I've simply forgotten to include a subcatalog with testfiles zz*. Sorry for my blotchiness. The patch looks good and works.

[Bug fortran/77350] New: ICE in truthvalue_conversion, at fortran/convert.c:65

2016-08-23 Thread gerhard.steinmetz.fort...@t-online.de
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- For versions down to at least 4.8, with invalid code : $ cat z1.f90 function f() result(g) contains logical function g() end end $ gfortran-7

[Bug fortran/77351] New: ICE in remove_trim, at frontend-passes.c:1145

2016-08-23 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With invalid code, and configured with --enable-checking=yes : $ cat z1.f90 program p integer :: z(4) = [1, 2, 3, 4] print *, any(shape(z) /= [4,1]) end

[Bug fortran/77352] New: ICE: verify_ssa failed

2016-08-23 Thread gerhard.steinmetz.fort...@t-online.de
: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Needs options -fopenmp -fopenacc -Ofast (or -Os|1|2|3 -fstack-arrays) : $ cat z1.f90 program p real, allocatable :: a(:,:), b(:) integer :: m=4, n=2 allocate (a(m,n), b(m

[Bug fortran/77371] New: ICE in force_constant_size, at gimplify.c:671 (... and others)

2016-08-24 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Some snippets with allocatable scalars (valid code) combined with OpenACC. Similar issue for "pointer" instead of &q

[Bug fortran/77371] ICE in force_constant_size, at gimplify.c:671 (... and others)

2016-08-24 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77371 --- Comment #1 from Gerhard Steinmetz --- $ cat z2.f90 program p integer, allocatable :: z !$acc parallel z = 1 !$acc end parallel print *, z end $ gfortran-7-20160821 -fopenacc z2.f90 z2.f90:2:0: integer, allocatable :: z

[Bug fortran/77371] ICE in force_constant_size, at gimplify.c:671 (... and others)

2016-08-24 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77371 --- Comment #2 from Gerhard Steinmetz --- Related : $ cat z6.f90 program p integer, allocatable :: n !$acc parallel reduction (+:n) private(n) !$acc end parallel end $ gfortran-7-20160821 -fopenacc z6.f90 z6.f90:3:0: !$acc parallel redu

[Bug fortran/77372] New: ICE in simplify_ieee_selected_real_kind, at fortran/simplify.c:7049

2016-08-24 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Affects gfortran 7, 6, 5 (not implemented before 5). $ cat z1.f90 program p use ieee_arithmetic real(kind

[Bug fortran/77374] New: ICE in resolve_omp_atomic, at fortran/openmp.c:3949

2016-08-24 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Invalid code with a displaced OpenMP directive. Configured with --enable-checking=yes. $ cat z1.f90 subroutine s1 (a, b) integer :: a, b !$omp atomic

[Bug fortran/77380] New: ICE in gfc_check_dependency, at fortran/dependency.c:1255

2016-08-25 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Invalid code, compiled at level -Og, -Os, -O1 or higher, with debugging compiler (--enable-checking=yes) : $ cat z1.f90 program

[Bug fortran/77380] ICE in gfc_check_dependency, at fortran/dependency.c:1255

2016-08-25 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77380 --- Comment #1 from Gerhard Steinmetz --- No ICE with -fcoarray=single : $ gfortran-7-20160821 -O2 -fcoarray=single z1.f90 z1.f90:3:14: z(:)[1] = z(:)[*] 1 Error: Coindex of codimension 1 must be a scalar at (1) Bailed ou

[Bug fortran/77381] New: ICE in resolve_equivalence, at fortran/resolve.c:15149

2016-08-25 Thread gerhard.steinmetz.fort...@t-online.de
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- For versions down to at least 4.8 : $ cat z1.f90 module m character(3) :: a(2), b(2) equivalence (a(2)(1:2), b(1)(2:3)) end program p use m end

[Bug fortran/77382] ICE: verify_gimple failed -- expand_expr_real_1, at expr.c:9651

2016-08-25 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77382 --- Comment #1 from Gerhard Steinmetz --- With official releases (configured with --enable-checking=release), down to at least 4.8 : $ gfortran-6 z1.f90 z1.f90:4:0: call s internal compiler error: in expand_expr_real_1, at expr.c:9651

[Bug fortran/77382] New: ICE: verify_gimple failed -- expand_expr_real_1, at expr.c:9651

2016-08-25 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With invalid code, and configured with --enable-checking=yes : $ cat z1.f90 subroutine s entry f(s) end call s end $ cat

[Bug fortran/66493] ICE on alternate return argument for typebound procedure

2016-08-29 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66493 --- Comment #9 from Gerhard Steinmetz --- Update, backtraces added : $ gfortran-7-20160828 pr66493.f90 f951: internal compiler error: in resolve_typebound_procedure, at fortran/resolve.c:12603 0x6e31ac resolve_typebound_procedure ../..

[Bug fortran/77406] New: ICE in generic_correspondence, at fortran/interface.c:1123

2016-08-29 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With invalid code, down to at least 4.8 : $ cat z1.f90 module m interface s subroutine s1(*) end subroutine

[Bug fortran/44348] ICE in build_function_decl

2016-08-30 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44348 --- Comment #12 from Gerhard Steinmetz --- Slightly modified variant : $ cat z7.f90 subroutine s(x) contains subroutine s(x) end end $ gfortran-7-20160828 z7.f90 z7.f90:3:0: subroutine s(x) internal compiler error: in gfc_generat

[Bug fortran/77414] New: ICE in create_function_arglist, at fortran/trans-decl.c:2410

2016-08-30 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With invalid code, down to at least 4.8, related to pr44348 : $ cat z1.f90 subroutine s(x) character(*) :: x contains

[Bug fortran/77414] ICE in create_function_arglist, at fortran/trans-decl.c:2410

2016-08-30 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77414 --- Comment #1 from Gerhard Steinmetz --- Backup tests, more variants : $ cat z2.f90 subroutine s(x) real :: x contains subroutine s(x) character(*) :: x end end $ cat z3.f90 subroutine s(x) real :: x contains subroutine

[Bug fortran/77415] New: ICE: tree check: expected function_type or method_type, have pointer_type in create_function_arglist, at fortran/trans-decl.c:2263

2016-08-30 Thread gerhard.steinmetz.fort...@t-online.de
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: --- With invalid code : $ cat z1.f90

[Bug fortran/77415] ICE: tree check: expected function_type or method_type, have pointer_type in create_function_arglist, at fortran/trans-decl.c:2263

2016-08-30 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77415 --- Comment #1 from Gerhard Steinmetz --- With official releases (configured with --enable-checking=release), down to at least 4.8 : $ gfortran-6 z1.f90 z1.f90:1:0: integer function f() internal compiler error: in make_decl_rtl, at varasm.

[Bug fortran/77429] New: ICE in gfc_check_dependency, at fortran/dependency.c:1261

2016-08-31 Thread gerhard.steinmetz.fort...@t-online.de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Affects version 6, 7 at optimization level -Og, -Os, -O1 or higher. ICE/backtrace when configured with --enable-checking=yes

[Bug fortran/77429] ICE in gfc_check_dependency, at fortran/dependency.c:1261

2016-08-31 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77429 --- Comment #1 from Gerhard Steinmetz --- Whereas : $ cat z3.f90 program p shape(1,2,3) = 0 end $ gfortran-7-20160828 z3.f90 z3.f90:2:3: shape(1,2,3) = 0 1 Error: Too many arguments in call to 'shape' at (1) --- Some other case

<    1   2   3   4   5   6