[Bug fortran/66544] [F03] ICE on function with procedure-pointer result in combination with implicit none

2016-02-01 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66544 --- Comment #6 from Gerhard Steinmetz --- When running several private scripts, there was a difference between some scripts including option -fimplicit-none, and some others that didn't. Reducing and simplifying gave example z0.f90 from comment

[Bug fortran/40737] Pointer references sometimes fail to define "span" symbols

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

[Bug fortran/69603] New: ICE: segfault with -fimplicit-none and proc_ptr_comp_24.f90

2016-02-01 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: --- While playing around, one example from ./gcc/testsuite/gfortran.dg/ together with option -fimplicit-none segfaults : $ gfortran

[Bug fortran/69604] New: ICE in gfc_add_modify_loc, at fortran/trans.c:159

2016-02-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: --- The following examples together with : $ gfortran-6 --version GNU Fortran (SUSE Linux) 6.0.0 20160121 (experimental) [trunk revision 232670] $ cat z1.f90

[Bug fortran/69604] ICE in gfc_add_modify_loc, at fortran/trans.c:159

2016-02-01 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69604 --- Comment #1 from Gerhard Steinmetz --- While playing around, one example from ./gcc/testsuite/gfortran.dg/ shows the same error with v6.0.0, but not with v5.3.1 : $ gfortran-6 -c complex_intrinsic_6.f90 internal compiler error: in gfc_add_

[Bug fortran/69514] ICE with nested array constructor

2016-02-02 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69514 --- Comment #2 from Gerhard Steinmetz --- Test case from comment 0 can be reduced to e.g. $ cat z3.f90 program p real, parameter :: w(2) = [real :: 0, 3.0*[real :: 2]] print *, w end program $ gfortran-6 -c z3.f90 f951: internal compiler

[Bug fortran/69636] New: ICE(s) on using option -fmodule-private

2016-02-02 Thread gerhard.steinmetz.fort...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- A validation run with option -fmodule-private exposes a few problems when running on test files from ./gcc/testsuite/gfortran.dg/ $ gfortran-6 -fmodule-private -c

[Bug fortran/69636] ICE(s) on using option -fmodule-private

2016-02-03 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69636 --- Comment #1 from Gerhard Steinmetz --- To begin with a short example, namely function_kinds_3.f90. Placing statement "private" explicit in source, reducing a bit, then compiling without "-fmodule-private" : $ cat z1.f90 module m private

[Bug fortran/69659] [6 Regression] ICE on using option -frepack-arrays, in gfc_conv_descriptor_data_get

2016-02-03 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69659 --- Comment #1 from Gerhard Steinmetz --- List of affected files : actual_array_offset_1.f90 allocate_class_3.f90 allocate_with_source_16.f90 allocate_with_source_8.f08 class_array_11.f03 class_array_20.f03 class_array_21.f

[Bug fortran/69659] New: [6 Regression] ICE on using option -frepack-arrays, in gfc_conv_descriptor_data_get

2016-02-03 Thread gerhard.steinmetz.fort...@t-online.de
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- A validation run with option -frepack-arrays exposes a regression when running on test files from ./gcc

[Bug fortran/69636] ICE(s) on using option -fmodule-private

2016-02-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69636 --- Comment #3 from Gerhard Steinmetz --- Thank you for commenting. A few comments will follow with melt down (simplified) test cases. Hopefully, nothing gets lost. It might have been better to post a handful of separate problem reports inste

[Bug fortran/69636] ICE(s) on using option -fmodule-private

2016-02-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69636 --- Comment #4 from Gerhard Steinmetz --- Applying same operations as in comment 1 to derived_external_function_1.f90 : $ cat z2.f90 module m private type t integer g end type end type(t) function f() result(ff) use m ff%g = 42

[Bug fortran/69636] ICE(s) on using option -fmodule-private

2016-02-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69636 --- Comment #5 from Gerhard Steinmetz --- The ICE with associate_6.f03 and -fmodule-private depends on including "implicit none" in main program : $ cat z3.f90 module m private contains pure function func (n) result (f) integer, int

[Bug fortran/69636] ICE(s) on using option -fmodule-private

2016-02-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69636 --- Comment #6 from Gerhard Steinmetz --- And for visibility of functions etc., a reduced and modified entry_16.f90 : $ cat z4.f90 module complex private :: cx_cadr, cx_radc type cx integer :: re integer :: im end type interfac

[Bug fortran/69659] [6 Regression] ICE on using option -frepack-arrays, in gfc_conv_descriptor_data_get

2016-02-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69659 --- Comment #3 from Gerhard Steinmetz --- Responsible is the class declaration of "x" : $ cat z1.f90 program p type t integer :: a end type contains subroutine s (x) class(t), intent(inout) :: x(:) print *, x(1)%a end end

[Bug fortran/69659] [6 Regression] ICE on using option -frepack-arrays, in gfc_conv_descriptor_data_get

2016-02-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69659 --- Comment #4 from Gerhard Steinmetz --- Another test scheme : $ cat z4.f90 module m type t class(*), allocatable :: z(:) end type contains subroutine s (x) class(*), intent(in) :: x(:) print *, size(x) end subrou

[Bug fortran/57284] [OOP] ICE with find_array_spec for polymorphic arrays

2016-02-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57284 --- Comment #4 from Gerhard Steinmetz --- As known, causative is the class declaration of "a", when using size(a). Some variants, replacing "class" with "type" : $ cat z2.f90 module m type t end type contains function foo(a, b) result(ad

[Bug fortran/69499] [F03] ICE-on-invalid on combining select type with wrong statement

2016-02-17 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69499 --- Comment #3 from Gerhard Steinmetz --- Yet another example : $ cat z4.f90 module m class(*) :: z select type (x => z) end

[Bug fortran/69859] New: ICE on incomplete character declaration statement

2016-02-17 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 incomplete declaration : $ cat z1.f90 program p type t character x y end type end $ gfortran-6 z1.f90 z1.f90:3:17: character x y

[Bug fortran/69859] ICE on incomplete character declaration statement

2016-02-17 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69859 --- Comment #1 from Gerhard Steinmetz --- Some other variants : $ cat z3.f90 program p type t character a , character b = character c : character d + character e . character f % !... end type end

[Bug fortran/69859] ICE on incomplete character declaration statement

2016-02-17 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69859 --- Comment #2 from Gerhard Steinmetz --- A bit different : $ cat z7.f90 program p type t character(2), allocatable :: a(*) character(*), allocatable :: b(2) character(*), allocatable :: c(*) end type end $ gfortran-6

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

2016-02-17 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: --- With a missing end apostrophe : $ cat z1.f90 program p character(len=2, kind=4) :: a = 'aa', b = 'bb end $ gfortran-6 -g z1.

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

2016-02-17 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69860 --- Comment #1 from Gerhard Steinmetz --- No ICE if "kind=4" is changed to "kind=1" : $ cat z2.f90 program p character(len=2, kind=1) :: a = 'aa', b = 'bb end $ gfortran-6 -g z2.f90 z2.f90:2:46: character(len=2, kind=1) :: a = 'aa', b

[Bug fortran/69861] New: ICE on declaring class parameter array

2016-02-17 Thread gerhard.steinmetz.fort...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- A code snippet with a parameter array : $ cat z1.f90 program p type t character :: c end type class(t), parameter :: z(2) = t('a') print

[Bug fortran/69861] ICE on declaring class parameter array

2016-02-17 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69861 --- Comment #1 from Gerhard Steinmetz --- Whereas, with a scalar parameter : $ cat z2.f90 program p type t character :: c end type class(t), parameter :: z = t('a') print *, z%c end $ gfortran-6 z2.f90 $ a.out a # no erro

[Bug fortran/69867] New: ICE on initializing character in type with array of incompatible data

2016-02-18 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: --- An array on lhs with incompatible data : $ cat z1.f90 program p type t character(1) :: c(1) = [1] end type

[Bug fortran/69867] ICE on initializing character in type with array of incompatible data

2016-02-18 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69867 --- Comment #1 from Gerhard Steinmetz --- Detected when lhs is a scalar : $ cat z4.f90 program p type t character(1) :: c(1) = 1 end type end $ gfortran-6 z4.f90 z4.f90:3:28: character(1) :: c(1) = 1

[Bug fortran/69867] ICE on initializing character in type with array of incompatible data

2016-02-18 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69867 --- Comment #3 from Gerhard Steinmetz --- These issues are thematically related to pr67804 (... more or less).

[Bug fortran/69867] ICE on initializing character in type with array of incompatible data

2016-02-18 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69867 --- Comment #2 from Gerhard Steinmetz --- One exception from comment 1 : $ cat z7.f90 program p type t character(1) :: b = null() character(1) :: c(1) = null() end type end $ gfortran-6 z7.f90 f951: internal compiler error: S

[Bug fortran/69962] New: ICE on missing parameter attribute, in gfc_set_constant_character_len

2016-02-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: --- The following snippet is wrong because n is not declared as parameter : $ cat z1.f90 program p integer :: n = 1

[Bug fortran/69963] New: ICE out of memory on displaced implicit character

2016-02-25 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Something goes wrong when a "implicit character" statement is mixed in at wrong places. There is NO ice, NO out of memory if "implicit none&quo

[Bug fortran/69963] ICE out of memory on displaced implicit character

2016-02-25 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69963 --- Comment #1 from Gerhard Steinmetz --- Created attachment 37795 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37795&action=edit More tiny examples

[Bug fortran/69964] New: ICE on misspelled end block data, in gfc_ascii_statement

2016-02-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 a typo : $ cat z1.f90 block data q end blook data q block data q2 end block data q2 $ cat z2.f90 block data q end block q

[Bug fortran/69965] New: ICE: tree check: expected tree that contains ‘typed’ structure, have ‘’ in gfc_get_character_type, at fortran/trans-types.c:1048

2016-02-25 Thread gerhard.steinmetz.fort...@t-online.de
Version: 6.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 an abstract class dummy argument

[Bug fortran/69965] ICE: tree check: expected tree that contains ‘typed’ structure, have ‘’ in gfc_get_character_type, at fortran/trans-types.c:1048

2016-02-25 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69965 --- Comment #1 from Gerhard Steinmetz --- Compiles if abstract "class(tab)" is replaced with extended "class(t)" : $ cat z2.f90 module m type, abstract :: tab contains procedure(fab), deferred :: f end type type, extends(tab

[Bug fortran/70068] New: ICE: out of memory on involving empty substring

2016-03-03 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Looks strange, is legal (empty substring, zero length) : $ cat z1.f90 program p character(99), parameter :: x(2) = ' ' character(99), paramete

[Bug fortran/70068] ICE: out of memory on involving empty substring

2016-03-03 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70068 --- Comment #1 from Gerhard Steinmetz --- Similar : $ cat z7.f90 program p integer :: i character(3), parameter :: x(3) = ['abc', 'ijk', 'xyz'] character(3), parameter :: y(2) = [(x(i)(i:1), i=2,3)] end $ gfortran-6 z7.f90 *** Error

[Bug fortran/70070] New: ICE on initializing character data beyond min/max bound

2016-03-03 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: --- This code accidentally accesses invalid data : $ cat z1.f90 program p integer :: i character(1) :: c data (c(i:i), i=1,11

[Bug fortran/70070] ICE on initializing character data beyond min/max bound

2016-03-03 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70070 --- Comment #1 from Gerhard Steinmetz --- Similar : $ cat z5.f90 program p integer :: i character(2) :: c data (c(i:i), i=-1,2) /2*'c'/ end $ gfortran-6 -c z5.f90 Error: DATA statement at (1) has more variables than values *** Error

[Bug fortran/70071] New: ICE on wrong usage of a subscript triplet

2016-03-03 Thread gerhard.steinmetz.fort...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- A wrong usage of a subscript triplet : $ cat z1.f90 program p integer, allocatable :: z(:)[:,:] allocate (z(2)[1::2,*]) end $ gfortran-6 -fcoarray=single z1

[Bug fortran/70071] ICE on wrong usage of a subscript triplet

2016-03-03 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70071 --- Comment #1 from Gerhard Steinmetz --- Whereas : $ cat z3.f90 program p integer, allocatable :: z(:)[:,:] allocate (z(1::2)[2,*]) end $ gfortran-6 -fcoarray=single z3.f90 z3.f90:3:13: allocate (z(1::2)[2,*]) 1 Error

[Bug fortran/70072] New: ICE in gfc_find_array_ref(): No ref found

2016-03-03 Thread gerhard.steinmetz.fort...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- A short test case : $ cat z1.f90 program p type t integer :: n end type class(t), parameter :: z(2,3) = t(1) print *, size(z, dim=1) print

[Bug fortran/70072] ICE in gfc_find_array_ref(): No ref found

2016-03-03 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70072 --- Comment #1 from Gerhard Steinmetz --- Whereas with "type" instead of "class" : $ cat z2.f90 program p type t integer :: n end type type(t), parameter :: z(2,3) = t(1) print *, size(z, dim=1) print *, lbound(z, dim=1)

[Bug fortran/70260] ICE: gimplification failed

2016-03-19 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70260 --- Comment #1 from Gerhard Steinmetz --- Another situation : $ cat z3.f90 subroutine s (f) integer, external :: f, g integer :: h g = f(2) h = g(2) end $ gfortran-6 -c z3.f90 gimplification failed: g QI

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

2016-03-19 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68566 --- Comment #4 from Gerhard Steinmetz --- Simplified a bit : $ cat z7.f90 program p integer, parameter :: a(:) = 1 integer, parameter :: b(2,2) = reshape([a], [2,2]) end $ gfortran-6 z7.f90 *** Error in `/usr/lib64/gcc/x86_64-suse-linu

[Bug fortran/70260] New: ICE: gimplification failed

2016-03-19 Thread gerhard.steinmetz.fort...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- A situation where gimplification fails : $ cat z1.f90 module m interface gkind procedure g end interface contains integer function g() g => 1

[Bug fortran/69604] ICE in gfc_add_modify_loc, at fortran/trans.c:159

2016-04-28 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69604 --- Comment #9 from Gerhard Steinmetz --- Update, using fresh new release gfortran-6 --version GNU Fortran (SUSE Linux) 6.1.0 20160427 [gcc-6-branch revision 235475] The error message has changed : $ gfortran-6 -c z1.f90 internal compiler er

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

2016-04-28 Thread gerhard.steinmetz.fort...@t-online.de
: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With the following codes : $ cat z1.f90 program p real, pointer :: z(:) z(1:2) => null()

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

2016-04-28 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70853 --- Comment #1 from Gerhard Steinmetz --- Messages interchanged (v5/v6) with a user defined type : $ cat z3.f90 program p type t end type type(t), pointer :: z(:) z(1:2) => null() end $ gfortran-6 -c z3.f90 internal compiler error:

[Bug fortran/69659] [6/7 Regression] ICE on using option -frepack-arrays, in gfc_conv_descriptor_data_get

2016-04-28 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69659 --- Comment #8 from Gerhard Steinmetz --- > Can you confirm that the patch fixes the issue in all cases > and does not raise new issues? Yes, I can confirm this now. FYI, there is a separate/independed issue, see pr70853 comment 1. My best re

[Bug fortran/70854] ICE in gfc_process_block_locals, at fortran/trans-decl.c:6447

2016-04-28 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70854 --- Comment #1 from Gerhard Steinmetz --- Similar for other intrinsic types : $ cat z3.f90 program p real :: x(2), y(2) block real, parameter :: a(2) = 0.0 x = a block y = 0.0 end block end block end

[Bug fortran/70855] New: [6 Regression] ICE with -fopenmp in gfc_trans_omp_workshare(): Bad statement code

2016-04-28 Thread gerhard.steinmetz.fort...@t-online.de
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With GNU Fortran (SUSE Linux) 6.1.0 20160427 and optimization level -Og, -Os, -O1 or higher : $ cat z1

[Bug fortran/70854] New: ICE in gfc_process_block_locals, at fortran/trans-decl.c:6447

2016-04-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: --- The following code with an inner block aborts when combined with an appropriate option -finit-*. Here "integer"

[Bug fortran/70856] New: [6 Regression] ICE with -fopenacc in get_constraint_for_ssa_var, at tree-ssa-structalias.c:2952

2016-04-28 Thread gerhard.steinmetz.fort...@t-online.de
Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Compiling the following snippet with optimization level -Os, -O2 or

[Bug fortran/70857] New: [6 Regression] ICE with -fopenmp -fopenacc in insert_vi_for_tree, at tree-ssa-structalias.c:2813

2016-04-28 Thread gerhard.steinmetz.fort...@t-online.de
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- For testcase .../gcc/testsuite/gfortran.dg/gomp/gridify-1.f90 and optimization level -Og

[Bug fortran/60561] ICE in gimplify_var_or_parm_decl, at gimplify.c:1721 for gfortran.dg/associate_1.f03

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

[Bug fortran/70854] ICE in gfc_process_block_locals, at fortran/trans-decl.c:6447

2016-05-02 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70854 --- Comment #2 from Gerhard Steinmetz --- As a side note, above examples are more or less a follow-up of pr67885. --- As tested recently, some more examples from gfortran's testsuite seem to be affected when running for example with -finit-loc

[Bug fortran/70913] New: ICE in gfc_encode_character, at fortran/target-memory.c:227

2016-05-02 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 len of string a is larger than len(c) : $ cat z1.f90 program p character(3), parameter :: a = 'abc'

[Bug fortran/70913] ICE in gfc_encode_character, at fortran/target-memory.c:227

2016-05-02 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70913 --- Comment #1 from Gerhard Steinmetz --- For completeness, these variants compile without errors : $ cat z2.f90 program p type t character :: c end type type t2 character :: q = transfer(t('a'), 'b') end type type(t

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

2016-05-02 Thread gerhard.steinmetz.fort...@t-online.de
: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- This case is interesting. On my environment with gfortran 6.1.0 20160427 and SUSE Linux 64 bit, this

[Bug fortran/70870] Segmentation violation in gfc_assign_data_value

2016-05-03 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70870 --- Comment #2 from Gerhard Steinmetz --- A variant that aborts with this message directly : $ gfortran-6 z1.f90 f951: internal compiler error: in gfc_assign_data_value, at fortran/data.c:449 $ cat z1.f90 program p type t integer :: n

[Bug fortran/48776] ICE(segfault) after -std=f95 diagnostic error involving PROCEDURE

2016-05-03 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48776 --- Comment #2 from Gerhard Steinmetz --- On my environment, the example from comment 0 compiles now without an ICE. $ gfortran-6 --version GNU Fortran (SUSE Linux) 6.1.1 20160502 [gcc-6-branch revision 235698] $ gfortran-6 -std=f95 pr48776.f9

[Bug fortran/67542] ICE on initializing type variable with a longer array

2016-05-03 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67542 --- Comment #4 from Gerhard Steinmetz --- The ICE from above is gone a while ago. $ gfortran-6 --version GNU Fortran (SUSE Linux) 6.1.1 20160502 [gcc-6-branch revision 235698] $ gfortran-6 -g -O0 -Wall -fcheck=all z1.f90 z1.f90:6:15: type

[Bug fortran/67542] ICE on initializing type variable with a longer array

2016-05-03 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67542 --- Comment #5 from Gerhard Steinmetz --- If not covered elsewhere, one problem is remaining. Nondeterministic and depending on used options : $ cat z4.f90 program p character(1), parameter :: a(4) = ['a','b','c','d'] type t intege

[Bug fortran/70931] New: ICE with -g in native_encode_initializer, bei dwarf2out.c:17768

2016-05-03 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: --- Up to now observed only with compile option -g. Under the hoods possibly related to pr67542. $ cat z1.f90 program p

[Bug fortran/70931] ICE with -g in native_encode_initializer, bei dwarf2out.c:17768

2016-05-03 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70931 --- Comment #1 from Gerhard Steinmetz --- Whereas, these variants compile without problems : $ cat z2.f90 program p type t integer :: b(0) end type type(t), parameter :: z = t([2]) print *, z end $ cat z3.f90 program p t

[Bug fortran/50410] [4.9/5/6/7 Regression] ICE in record_reference

2016-05-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50410 --- Comment #23 from Gerhard Steinmetz --- These variants give : $ cat z1.f90 program p type ta integer :: a end type type t type(ta), pointer :: b end type type(t) :: z data z / t(ta(1)) / end $ gfortran-6 z1.f9

[Bug fortran/50410] [4.9/5/6/7 Regression] ICE in record_reference

2016-05-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50410 --- Comment #24 from Gerhard Steinmetz --- And an exotic case : $ cat z5.f90 module m real, target :: a[*] real, pointer :: z => a end $ gfortran-6 -fcoarray=lib -c z5.f90 f951: internal compiler error: in record_reference, at cgraphbuil

[Bug fortran/70949] ICE in propagate_necessity, at tree-ssa-dce.c:924

2016-05-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70949 --- Comment #1 from Gerhard Steinmetz --- This variant works : (as known from several other PRs : change "class" to "type") $ cat z2.f90 program p type t1 end type type t2 type(t1), pointer :: q end type type(t1), pointer

[Bug fortran/70949] New: ICE in propagate_necessity, at tree-ssa-dce.c:924

2016-05-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: --- Compiling with optimization level -Og, -Os, -O1 or higher : (affects older gfortran versions too) $ cat z1.f90 program p type t1 end type type t2

[Bug fortran/70950] New: ICE with -O0 in simplify_subreg, at simplify-rtx.c:5895

2016-05-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: --- This error message is generated with optimization level -O0 : (affects older gfortran versions too) $ cat z1.f90 program p

[Bug fortran/70950] ICE with -O0 in simplify_subreg, at simplify-rtx.c:5895

2016-05-04 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70950 --- Comment #1 from Gerhard Steinmetz --- Please note : both examples from pr70949 are simplifications of this PR, thus related. Behaviour differs for -O0 (with/without ICE). Compiling the example from above with optimization level -Og, -Os, -O1

[Bug fortran/56765] [OOP] compilation errors/ICE with polymorphic array

2016-05-11 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56765 --- Comment #6 from Gerhard Steinmetz --- On my environment, all tests compile now without an ICE. (also tested with several other compile options) $ gfortran-6 --version GNU Fortran (SUSE Linux) 6.1.1 20160502 [gcc-6-branch revision 235698]

[Bug fortran/57197] [Fortran-Dev][Regression] ICE in record_reference, at cgraphbuild.c:66

2016-05-11 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57197 --- Comment #2 from Gerhard Steinmetz --- For me, test compiles now without ICE -- same with "use thing" added. $ gfortran-6 --version GNU Fortran (SUSE Linux) 6.1.1 20160502 [gcc-6-branch revision 235698]

[Bug fortran/71066] New: ICE in set_loop_bounds, at fortran/trans-array.c:4680

2016-05-11 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: --- This first example is partially related to pr50410 : $ cat z1.f90 program p type t real, allocatable :: a(:,:) end type type(t), pointer

[Bug fortran/71067] New: ICE on data initialization with insufficient value or wrong boz-constants

2016-05-11 Thread gerhard.steinmetz.fort...@t-online.de
: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With a missing parameter attribute, or value not initialized : $ cat z1.f90 program p integer :: i = 0

[Bug fortran/71067] ICE on data initialization with insufficient value or wrong boz-constants

2016-05-11 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71067 --- Comment #1 from Gerhard Steinmetz --- A) correct with parameter : $ cat z3.f90 program p integer, parameter :: i = 0 integer :: z(2) data z /2*i/ print *, z end $ gfortran-6 z3.f90 $ a.out 0 0 B) wrong c

[Bug fortran/71068] New: ICE in check_data_variable(): Bad expression

2016-05-11 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 this wrong code : $ cat z1.f90 program p integer :: a(2)[*] data a(1)[1] /1/ data a(2)[1] /2/ end $ gfortran-6 -fcoarray=lib z1.f90 f951: internal

[Bug fortran/66461] [4.9/5/6/7 Regression] ICE on missing end program in fixed source

2016-05-17 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66461 --- Comment #11 from Gerhard Steinmetz --- ... some more variations with slightly different "line breaks" : $ cat z6.f program p integer x x = 0 if ( x > &0 ) continue !end $ gfortran-6

[Bug fortran/71203] New: ICE in add_init_expr_to_sym, at fortran/decl.c:1512 and :1564

2016-05-19 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: --- While exploring "source space" around pr68019 and pr68154, another issue came into focus : $ cat z1.f90

[Bug fortran/71203] ICE in add_init_expr_to_sym, at fortran/decl.c:1512 and :1564

2016-05-19 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71203 --- Comment #1 from Gerhard Steinmetz --- $ cat z4.f90 program p integer :: i integer, parameter :: x(2) = 0 integer, parameter :: y(*) = [(x(i:i), i=1,2)] end $ gfortran-6 z4.f90 f951: internal compiler error: in add_init_expr_to_sym,

[Bug fortran/71204] New: ICE with -O0 in expand_expr_real_1, at expr.c:9651

2016-05-19 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: --- Full reduction and simplification from a production code base results in the following reproducer, aborting at -O0 : $ cat z1.f90 module m character(10

[Bug fortran/70913] ICE in gfc_encode_character, at fortran/target-memory.c:227

2016-05-19 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70913 --- Comment #3 from Gerhard Steinmetz --- Another situation : $ cat z4.f90 program p character(3) :: a(2) = ['abc', 'xyz'] character(3) :: b(1,2) = ' ' equivalence (b, a) end $ gfortran-6 z4.f90 internal compiler error: in gfc_encode_

[Bug fortran/71203] ICE in add_init_expr_to_sym, at fortran/decl.c:1512 and :1564

2016-05-19 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71203 --- Comment #2 from Gerhard Steinmetz --- Forgotten to mention subcases : $ cat z3a.f90 program p character(3), parameter :: a(4) = ' ' character(*), parameter :: x(*) = a(1:2)(3:1) end $ gfortran-6 z3a.f90 *** Error in `/usr/lib64/gcc/x

[Bug fortran/78479] New: ICE in gfc_apply_init, at fortran/expr.c:4135

2016-11-22 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 valid code down to at least 4.8 : $ cat z1.f90 program p type t character(3) :: c(1) = 'a' // ['b'] end type end $

[Bug fortran/78479] ICE in gfc_apply_init, at fortran/expr.c:4135

2016-11-22 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78479 --- Comment #1 from Gerhard Steinmetz --- Whereas, these variants are ok : $ cat z3.f90 program p type t character(2) :: c(1) = 'a' // ['b'] end type type(t) :: z print *, len(z%c), size(z%c), z end $ gfortran-7-20161120 z

[Bug fortran/78499] New: ICE in gfc_typename, at fortran/misc.c:158

2016-11-23 Thread gerhard.steinmetz.fort...@t-online.de
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 : (configured with --enable-checking=yes) $ cat z1.f90 program p type t end type class(t) :: x = 0 end $ gfortran

[Bug fortran/78499] ICE in gfc_typename, at fortran/misc.c:158

2016-11-23 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78499 --- Comment #1 from Gerhard Steinmetz --- Whereas : $ cat z2.f90 program p type t end type type(t) :: x = 0 end $ gfortran-7-20161120 z2.f90 z2.f90:4:17: type(t) :: x = 0 1 Error: Can't convert INTEGER(4) to T

[Bug fortran/78500] New: ICE in gfc_check_vardef_context, at fortran/expr.c:5289

2016-11-23 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 : (configured with --enable-checking=yes) $ cat z1.f90 class(t) function f() f = 1 end

[Bug fortran/78500] ICE in gfc_check_vardef_context, at fortran/expr.c:5289

2016-11-23 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78500 --- Comment #1 from Gerhard Steinmetz --- Whereas : $ cat z2.f90 type(t) function f() f = 1 end $ gfortran-7-20161120 -c z2.f90 z2.f90:1:0: type(t) function f() Error: The type for function 'f' at (1) is not accessible z2.f90:2:3:

[Bug fortran/70070] ICE on initializing character data beyond min/max bound

2016-11-25 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70070 --- Comment #4 from Gerhard Steinmetz --- At a first glance with gfortran-6 (configured with --enable-checking=yes), still ICEs for all posted and unposted cases. A dedicated one : $ gfortran-6 z3.f90 f951: internal compiler error: Segmentatio

[Bug fortran/70070] ICE on initializing character data beyond min/max bound

2016-11-25 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70070 --- Comment #5 from Gerhard Steinmetz --- FYI, for some circumstances there existed related issues like : using LANG=de_DE.UTF-8 f951: internal compiler error: Speicherzugriffsfehler 0xc4265f crash_signal ../../gcc/toplev.c:333 0x13f4

[Bug fortran/70070] ICE on initializing character data beyond min/max bound

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

[Bug fortran/78570] New: ICE in free_expr0, at fortran/expr.c:494

2016-11-28 Thread gerhard.steinmetz.fort...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Follow-up of pr78479 : $ cat z1.f90 program p type t character(3) :: c(2) = 'a' // ['b', 'c'] end type type(t) :: z p

[Bug fortran/78571] New: ICE in create_character_initializer, at fortran/data.c:191

2016-11-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: --- With invalid code, down to at least 4.8 (with --enable-checking=yes). A different facet; ICE does not depend on compile options

[Bug fortran/78573] New: ICE in resolve_component, at fortran/resolve.c:13405

2016-11-28 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: --- Appeared between 20161023 (no ICE) and 20161030, with invalid code : $ cat z1.f90 program p type t1 class(t2), pointer :: q(2) end type end

[Bug fortran/78592] New: ICE in gfc_find_specific_dtio_proc, at fortran/interface.c:4939

2016-11-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: --- Affects version 7 (configured with --enable-checking=yes) since about 20160904 : $ cat z1.f90 program p type t end

[Bug fortran/58904] ICE: accessing a component field of an unavailable type results in a seg fault

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

[Bug fortran/78593] New: ICE in gfc_match_varspec, at fortran/primary.c:2053

2016-11-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: --- Invalid code with a hidden type declaration. Affects version 6 and 7 (configured with --enable-checking=yes) (bailed out if configured with --enable-checking

[Bug fortran/78593] ICE in gfc_match_varspec, at fortran/primary.c:2053

2016-11-29 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78593 --- Comment #1 from Gerhard Steinmetz --- Works with a public type declaration : $ cat z2.f90 module m1 public type t integer :: a end type end module m2 use m1 interface operator(+) module procedure add end int

  1   2   3   4   5   6   >