[Bug fortran/68227] ICE on using variable limit in forall header (gfc_do_allocate)

2015-11-05 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68227 --- Comment #1 from Gerhard Steinmetz --- Of course, above code works with : forall (i=1:n) y(i)%a => x But it works too, if above n is replaced with literal value 2 : $ cat y3.f90 program p type t end type type t2 type(t),

[Bug fortran/68225] ICE with -Wrealloc-lhs-all on structure constructor with allocatable components

2015-11-09 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68225 --- Comment #4 from Gerhard Steinmetz --- > > Am I correct to understand that this error is bogus for Fortran 2008 (at > least)? That feature is new in F2008 : A structure constructor can omit the value for an allocatable component. Further

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

2015-11-09 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68225 --- Comment #5 from Gerhard Steinmetz --- $ cat yy0.f90 program p type t integer, allocatable :: a(:) end type type(t) :: x x = t() print *, allocated(x%a), x%a end $ gfortran -g -O0 -Wall -fcheck=all yy0.f90 $ a.out F -

[Bug fortran/66494] [4.9/5/6 Regression] ICE on using same name for embedded subroutine

2015-11-09 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66494 --- Comment #4 from Gerhard Steinmetz --- Indeed it is. And prefix specs recursive and non_recursive are not relevant here.

[Bug fortran/44348] ICE in build_function_decl

2015-11-09 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44348 --- Comment #11 from Gerhard Steinmetz --- As a side note, with a slightly modified example b from comment 3 and $ gfortran --version GNU Fortran (SUSE Linux) 5.2.1 20151008 [gcc-5-branch revision 228597] $ cat pr44348_c3b_modified.f90 FUNCTI

[Bug fortran/68318] New: ICE on duplicate entry declarations

2015-11-12 Thread gerhard.steinmetz.fort...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With duplicate entry declarations in scope : $ cat z1.f90 module m implicit none contains subroutine s1 entry e end subroutine s2 entry e end end

[Bug fortran/68318] ICE on duplicate entry declarations

2015-11-12 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68318 --- Comment #1 from Gerhard Steinmetz --- Somehow similar for functions : $ cat z3.f90 module m contains real function f1() entry e() end real function f2() entry e() end end module $ gfortran -g -O0 -Wall -fcheck=all -c z3.

[Bug fortran/68319] New: ICE on using interface with included entry

2015-11-12 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- An interface declaration with an included entry : $ cat z1.f90 module m interface subroutine s entry e end end interface contains

[Bug fortran/68319] ICE on using interface with included entry

2015-11-12 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68319 --- Comment #1 from Gerhard Steinmetz --- Same issue with interface of a function. Compiles if interface is effectivly not used : $ cat z1x.f90 module m interface subroutine s entry e end end interface contains subr

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

2015-11-19 Thread gerhard.steinmetz.fort...@t-online.de
: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- One dedicated case and error message. Issue related with pr68225. $ cat z1

[Bug fortran/68440] New: ICE on declaring class variable with wrong attribute

2015-11-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: --- This wrong code (class not allocatable nor pointer) : $ cat z1.f90 subroutine s type t end type class(t), parameter :: x = t() class(t

[Bug fortran/68440] ICE on declaring class variable with wrong attribute

2015-11-19 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68440 --- Comment #1 from Gerhard Steinmetz --- Some variants : $ cat z4.f90 subroutine s type t end type class(t), parameter :: x = t() end $ gfortran -g -O0 -Wall -fcheck=all z4.f90 f951: internal compiler error: Segmentation fault ---

[Bug fortran/68440] ICE on declaring class variable with wrong attribute

2015-11-19 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68440 --- Comment #2 from Gerhard Steinmetz --- Detected : $ cat z7.f90 subroutine s type t end type class(t), allocatable :: x = t() end $ gfortran -g -O0 -Wall -fcheck=all z7.f90 z7.f90:4:29: class(t), allocatable :: x = t()

[Bug fortran/68441] New: ICE on using transfer with character parameter

2015-11-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: --- For some tests of "TRANSFER (TRANSFER (E, D), E)" : $ cat z1.f90 program p character(huge(1_1)), parameter :: x = 'abc' print *, tr

[Bug fortran/68442] New: ICE on kind specification, depending on ordering of functions

2015-11-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: --- Using this order (f before g) : $ cat z1.f90 module m interface gkind procedure g end interface contains

[Bug fortran/68442] ICE on kind specification, depending on ordering of functions

2015-11-19 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68442 --- Comment #1 from Gerhard Steinmetz --- Detected with reversed order : $ cat z2.f90 module m interface gkind procedure g end interface contains integer function g() g = 1 end subroutine f(x) character(kind=gk

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

2015-11-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: --- Using wrong defined array a : $ cat z1.f90 program p integer, parameter :: n = 2 integer, parameter :: a(:) = 0

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

2015-11-26 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68566 --- Comment #1 from Gerhard Steinmetz --- Same issue with variants ... $ cat z2.f90 program p integer, parameter :: n = 2 integer, parameter :: a(2.) = 1 integer, parameter :: b(n, n) = reshape([a, -a], [n, n]) end $ cat z3.f90 progra

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

2015-11-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: --- Different examples (incl. DATA) with different error messages, but strong related to pr68566. $ cat zz3.f90 program p

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

2015-11-26 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68567 --- Comment #1 from Gerhard Steinmetz --- $ cat z1.f90 program p integer, parameter :: a(2.,2) = 1 integer, parameter :: b(2) = a(1:2, 2) end $ gfortran -g -O0 -Wall -fcheck=all z1.f90 f951: internal compiler error: compare_bound_int(): B

[Bug fortran/68568] New: ICE with automatic character object and save, in combination with some options

2015-11-26 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: --- Compiling with "-finit-character" gives an internal error here : $ cat z1a.f90 subroutine s(n)

[Bug fortran/68568] ICE with automatic character object and save, in combination with some options

2015-11-26 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68568 --- Comment #1 from Gerhard Steinmetz --- As already known, this works without an error : (A SAVE statement without a saved entity list is treated as though it contained the names of all allowed items in the same scoping unit.) $ gfortran -g -O

[Bug fortran/68568] ICE with automatic character object and save, in combination with some options

2015-11-26 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68568 --- Comment #2 from Gerhard Steinmetz --- Personal usage of "-finit-character" : ONLY for debugging/checking, NEVER for production builds. Issue is related to pr59537, where : array , dimension(n) , -finit-real This pr68568 differs in :

[Bug fortran/68569] New: ICE with automatic character object and DATA

2015-11-26 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- This issue is strong related to pr68568, but differs : - initialization with DATA - no explicit SAVE - it does NOT depend on "-finit-character" nor &

[Bug fortran/69395] New: ICE on declaring array with more than 7 dimensions+codimensions

2016-01-20 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: --- These variants with sum of dimensions and codimensions greater than 7 (actual limit) : $ cat z1.f90 program p real

[Bug fortran/69395] ICE on declaring array with more than 7 dimensions+codimensions

2016-01-20 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69395 --- Comment #1 from Gerhard Steinmetz --- Whereas, detected with this declaration variant : $ cat z2.f90 program p real :: z4d(2,2,2,2)[2,2,2,*] end $ gfortran -fcoarray=single z2.f90 z2.f90:2:30: real :: z4d(2,2,2,2)[2,2,2,*]

[Bug fortran/69396] New: ICE on type mismatch, in update_ppc_arglist, at fortran/resolve.c:5580

2016-01-20 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: --- $ cat z1.f90 module m1 type t1 end type end module m2 use m1 type t2 procedure(f), pointer :: f2

[Bug fortran/69396] ICE on type mismatch, in update_ppc_arglist, at fortran/resolve.c:5580

2016-01-20 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69396 --- Comment #1 from Gerhard Steinmetz --- FYI, works with correct type specification : $ cat z2.f90 module m1 type t1 end type end module m2 use m1 type t2 procedure(f), pointer :: f2 => f2a procedure(g), pointer :: g2

[Bug fortran/69397] New: ICE on missing subprogram in generic interface

2016-01-20 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- $ cat z1.f90 program p interface f procedure f1 !... more end interface integer, allocatable :: z print *, f(z) contains integer

[Bug fortran/69398] New: ICE on class with duplicate dimension attribute specified

2016-01-20 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 duplicate dimension attribute specified : $ cat z1.f90 program p type t end type class(t), allocatable :: z

[Bug fortran/69398] ICE on class with duplicate dimension attribute specified

2016-01-20 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69398 --- Comment #1 from Gerhard Steinmetz --- Whereas, detected : $ cat z2.f90 program p type t end type type(t), allocatable :: z(:) target :: z(:) allocate (z(2)) end $ gfortran -c z2.f90 z2.f90:5:14: target :: z(:)

[Bug fortran/69398] ICE on class with duplicate dimension attribute specified

2016-01-20 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69398 --- Comment #2 from Gerhard Steinmetz --- BTW : $ cat z1c.f90 program p type t end type class(t), allocatable :: z(:) target :: z(2) allocate (z(2)) end $ gfortran-5.3.1 -c z1c.f90 z1c.f90:1:0: program p 1 internal compiler

[Bug fortran/69417] New: ICE: tree check: expected function_type or method_type, have pointer_type in gimplify_call_expr, at gimplify.c:2467

2016-01-21 Thread gerhard.steinmetz.fort...@t-online.de
: 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 differing declaration and usage of x : $ cat z1

[Bug fortran/69417] ICE: tree check: expected function_type or method_type, have pointer_type in gimplify_call_expr, at gimplify.c:2467

2016-01-21 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69417 --- Comment #1 from Gerhard Steinmetz --- $ gfortran-5.3.1 -c z1.f90 z1.f90:6:0: print *, x(2)%f() ^ internal compiler error: in aggregate_value_p, at function.c:2068

[Bug fortran/69418] New: ICE: tree check: expected record_type ... in gfc_class_vptr_get, at fortran/trans-expr.c:149

2016-01-21 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: --- $ cat z1.f90 subroutine s(x) class(*) :: x[*] class(*), allocatable :: z allocate (z

[Bug fortran/69418] ICE: tree check: expected record_type ... in gfc_class_vptr_get, at fortran/trans-expr.c:149

2016-01-21 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69418 --- Comment #1 from Gerhard Steinmetz --- Compiles when relaxing source to mold : $ cat z2.f90 subroutine s(x) class(*) :: x[*] class(*), allocatable :: z allocate (z, mold=x) end $ gfortran-6 -fcoarray=single -c z2.f90

[Bug fortran/69419] New: ICE: tree check: expected array_type, have real_type in gfc_conv_array_initializer, at fortran/trans-array.c:5618

2016-01-21 Thread gerhard.steinmetz.fort...@t-online.de
: 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: --- $ cat z1.f90 blockdata real x common /c/ x

[Bug fortran/69419] ICE: tree check: expected array_type, have real_type in gfc_conv_array_initializer, at fortran/trans-array.c:5618

2016-01-21 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69419 --- Comment #1 from Gerhard Steinmetz --- $ gfortran-5.3.1 -fcoarray=single -c z1.f90 z1.f90:5:0: end blockdata ^ internal compiler error: Segmentation fault

[Bug fortran/69420] New: ICE: tree check: expected array_type, have pointer_type in gfc_conv_array_initializer, at fortran/trans-array.c:5618

2016-01-21 Thread gerhard.steinmetz.fort...@t-online.de
: 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: --- $ cat z1.f90 program p interface pure

[Bug fortran/69420] ICE: tree check: expected array_type, have pointer_type in gfc_conv_array_initializer, at fortran/trans-array.c:5618

2016-01-21 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69420 --- Comment #1 from Gerhard Steinmetz --- $ gfortran-5.3.1 -c z1.f90 z1.f90:1:0: program p 1 internal compiler error: Segmentation fault --- Compiles without initialization : $ cat z2.f90 program p interface pure integer function

[Bug fortran/66679] ICE with class(*) and transfer

2016-01-21 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66679 --- Comment #2 from Gerhard Steinmetz --- FYI : $ gfortran --version GNU Fortran (SUSE Linux) 6.0.0 20160108 (experimental) [trunk revision 232162] $ gfortran -c pr66679.f90 pr66679.f90:7:0: print*, size(transfer(vec(1),[var])) internal

[Bug fortran/69474] ICE: tree check: expected class ‘expression’, have ‘declaration’ (var_decl) in tree_operand_check, at tree.h:3504

2016-01-25 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69474 --- Comment #1 from Gerhard Steinmetz --- $ gfortran-5.3.1 -c z1.f90 z1.f90:19:0: z(1:n) = x([(i, i=n,1,-1)]) ^ internal compiler error: Segmentation fault --- These assignment variants are accepted : $ cat z2.f90 module m type t

[Bug fortran/69474] New: ICE: tree check: expected class ‘expression’, have ‘declaration’ (var_decl) in tree_operand_check, at tree.h:3504

2016-01-25 Thread gerhard.steinmetz.fort...@t-online.de
: 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: --- $ gfortran-6 --version GNU Fortran (SUSE Linux) 6.0.0

[Bug fortran/67524] ICE on using implicit character instead of implicit none etc.

2016-01-25 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67524 --- Comment #4 from Gerhard Steinmetz --- With a recent version the message is now : $ gfortran-6 --version GNU Fortran (SUSE Linux) 6.0.0 20160121 (experimental) [trunk revision 232670] $ gfortran-6 -c z1_imchfe.f90 z1_imchfe.f90:4:0: fu

[Bug fortran/69497] New: ICE in gfc_free_namespace, at fortran/symbol.c:3701

2016-01-26 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- An outer statement block with an incomplete embedded statement block is sometimes not handled properly, like the following : $ cat z1.f90 program p

[Bug fortran/69497] ICE in gfc_free_namespace, at fortran/symbol.c:3701

2016-01-26 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69497 --- Comment #1 from Gerhard Steinmetz --- Created attachment 37479 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37479&action=edit Several test cases

[Bug fortran/69498] New: ICE on disjunct cases with displaced or incomplete embedded statement

2016-01-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: --- Similar to pr69497, with an incomplete or displaced embedded statement. Different error messages, and sometimes

[Bug fortran/69498] ICE on disjunct cases with displaced or incomplete embedded statement

2016-01-26 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69498 --- Comment #1 from Gerhard Steinmetz --- $ cat z3.f90 program p if (2 > 1) then submodule (m) sm end if end $ gfortran-6 -c z3.f90 f951: internal compiler error: gfc_get_default_type(): Bad symbol ...

[Bug fortran/69498] ICE on disjunct cases with displaced or incomplete embedded statement

2016-01-26 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69498 --- Comment #2 from Gerhard Steinmetz --- And one more exotic, sorry ... $ cat z7.f90 program p submodule (m) sm submodule (m) sm $ gfortran-6 -c z7.f90 f951: internal compiler error: in gfc_match_submodule, at fortran/module.c:748

[Bug fortran/69499] New: ICE on combining select type with wrong statement

2016-01-26 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- A wrong combination of select type with another statement (thematically related to pr69497) $ cat z1.f90 function f(x) select type (x) select type (x

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

2016-01-26 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69499 --- Comment #1 from Gerhard Steinmetz --- Created attachment 37480 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37480&action=edit Some more examples

[Bug fortran/66380] New: ICE for intrinsic reshape with insufficient number of array elements

2015-06-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: --- This code with less array elements than requested via shape sh : program p integer, parameter :: sh(2) = [2

[Bug fortran/66461] New: ICE on missing end program in fixed source

2015-06-08 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- A missing end program in a "fixed" source s.f : program p integer x(2) x = 0 if ( x(1) < 0 .or. &x(2)

[Bug fortran/66193] ICE for initialisation of some non-zero-sized arrays

2015-06-09 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66193 --- Comment #11 from Gerhard Steinmetz --- Created attachment 35726 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35726&action=edit test case pr66193_1_real.f90

[Bug fortran/66193] ICE for initialisation of some non-zero-sized arrays

2015-06-09 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66193 --- Comment #12 from Gerhard Steinmetz --- Created attachment 35727 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35727&action=edit test case pr66193_2_integer.f90

[Bug fortran/66193] ICE for initialisation of some non-zero-sized arrays

2015-06-09 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66193 --- Comment #13 from Gerhard Steinmetz --- Created attachment 35728 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35728&action=edit test case pr66193_3_diverse.f90

[Bug fortran/66193] ICE for initialisation of some non-zero-sized arrays

2015-06-09 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66193 --- Comment #14 from Gerhard Steinmetz --- Attached some prepared test files. Added more test cases for integer and real. Added new test case for logical : subroutine s2 logical(8), parameter :: z1(2) = .true. .or. [ logical(8) :: [ logic

[Bug fortran/66193] ICE for initialisation of some non-zero-sized arrays

2015-06-10 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66193 --- Comment #15 from Gerhard Steinmetz --- Created attachment 35745 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35745&action=edit test case pr66193_3_diverse_new.f90 Better test, replaces pr66193_3_diverse.f90

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

2015-06-10 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 with an alternate return argument (*) seems to be improper : module p type t contains procedure

[Bug fortran/66494] New: ICE on using same name for embedded subroutine

2015-06-10 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- This ambiguous code ... recursive subroutine s call s contains subroutine s end end yields (with gfortran 5.1.1, 4.9.0, 4.8.3 on

[Bug fortran/66495] New: [5 Regression] Issue with same name for embedded function

2015-06-10 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: --- Another test case : integer function f() contains integer function f() end end yields (gfortran 5.1.1

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

2015-06-11 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66493 --- Comment #7 from Gerhard Steinmetz --- Interestingly, there are some tests in the test suite already, especially altreturn_3.f90 and altreturn_8.f90. The latter is using a nopass attribute and compiles. It still should be tested with some re

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

2015-06-11 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66493 --- Comment #8 from Gerhard Steinmetz --- Case zarc1_2_pass.f90 should be definitely illegal code.

[Bug fortran/66544] New: ICE on function with pointer result in combination with implicit none

2015-06-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: --- This code with "implicit none" : module m implicit none contains function f(

[Bug fortran/66545] New: ICE on using undefined parameter/variable values

2015-06-15 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- This code uses parameter/variable values before they are defined/initialized. $ cat z1_complex.f90 program p complex, parameter :: c1 = (c1

[Bug fortran/66545] ICE on using undefined parameter/variable values

2015-06-15 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66545 --- Comment #1 from Gerhard Steinmetz --- Trivially, the following cases behave similar : $ cat z1_real.f90 program p real, parameter :: c1 = (c1) real, parameter :: c2 = c2 real :: c3 = (c3) real :: c4 = c4 real :: c5 real :

[Bug fortran/66244] ICE on assigning a value to a pointer variable

2015-06-15 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66244 --- Comment #1 from Gerhard Steinmetz --- Perhaps it's better to make the target array a bit larger. And to provide a not so minimalistic version : program p integer, target :: a(4) integer, pointer :: z => a(3) call s c

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

2015-06-15 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66544 --- Comment #1 from Gerhard Steinmetz --- Originally not the above z0.f90, but this code was thought as test case : $ cat z0.f90 module m contains function f() result(z) procedure(f), pointer :: z end end module

[Bug fortran/66545] ICE on using undefined parameter/variable values

2015-06-15 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66545 --- Comment #2 from Gerhard Steinmetz --- FYI, it's astonishing, but this code compiles without an ICE and prints some reasonable error messages : $ cat z2_type.f90 program p type t integer :: n end type type(t), parameter :: c1

[Bug fortran/66056] Segmentation fault for lonely label in type

2015-06-17 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66056 --- Comment #2 from Gerhard Steinmetz --- Hmm, there is always an ICE on my environment, for any used options.

[Bug fortran/66056] Segmentation fault for lonely label in type

2015-06-17 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66056 --- Comment #3 from Gerhard Steinmetz --- The following test file generates an endless compilation for every subroutine. It's worth looking deeper. $ cat type_with_lonely_numbers.f90 program p call s1 call s2 call s3 call s4 cal

[Bug fortran/66056] Segmentation fault for lonely label in type

2015-06-17 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66056 --- Comment #4 from Gerhard Steinmetz --- These two do not circle around, $ cat y1.f90 program p type t integer :: n = 1 1 ! 2 ! end type type(t) :: a print *, a end $ cat y2.f90 program p type t intege

[Bug fortran/66575] New: Endless compilation on missing end interface

2015-06-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: --- If the first "end interface" is missing : $ cat zlcti_1.f90 module m interface operator (.f.) procedure f !end interface

[Bug fortran/66575] Endless compilation on missing end interface

2015-06-17 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66575 --- Comment #1 from Gerhard Steinmetz --- The above sources can be reduced further. The part below "contains" (inclusive contains) is not needed to produce the effect : $ cat zlcti_4.f90 module m interface operator (.f.) proc

[Bug fortran/66643] New: Missing compilation error for formatted data transfer without format

2015-06-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: --- For read/write an io-unit that is an asterisk (*) identifies an external unit that is preconnected for sequential

[Bug fortran/66643] Missing compilation error for formatted data transfer without format

2015-06-23 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66643 --- Comment #1 from Gerhard Steinmetz --- Minimalistic code : $ cat z_write_none.f90 program p write (*) end $ gfortran -g -O0 -Wall -fcheck=all z_write_none.f90 $ a.out At line 2 of file z_write_none.f90 (unit = 6, file = 'stdout') Fortran

[Bug fortran/66575] Endless compilation on missing end interface

2015-06-30 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66575 --- Comment #3 from Gerhard Steinmetz --- Playing around, I've found other cases (wrong code with procedure) causing endless compilation on my environment, e.g. $ cat zlctp_1.f90 program p procedure(g) :: g procedure(g) :: g end $ cat

[Bug fortran/66707] New: Endless compilation on wrong usage of common

2015-06-30 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- After printing some correct and helpful error messages, compilation of the following snippets (wrong code) will not end. Tested with gfortran 5.1.1, 4.9.0, 4.8.3

[Bug fortran/66708] New: Possible (minor) improvement on formatted io with format too short

2015-06-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: --- Formatted read or write of a variable (list) needs a format (fmt) string longer than 2 characters, because of

[Bug fortran/66708] Possible (minor) improvement on formatted io with format too short

2015-06-30 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66708 Gerhard Steinmetz changed: What|Removed |Added Severity|normal |enhancement --- Comment #1 from Gerh

[Bug fortran/66709] New: ICE on formatted io with parameter array specifier fmt

2015-06-30 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: --- Specifying a character array for fmt is legal fortran. If declared as parameter, compilation fails : $ cat z_wr_fmt_ice_1.f90 program p character(4

[Bug fortran/66709] ICE on formatted io with parameter array specifier fmt

2015-06-30 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66709 --- Comment #1 from Gerhard Steinmetz --- Whereas versions without "parameter" compile and run fine : $ cat z_wr_fmt_ice_4.f90 program p character(4) :: fmt(1) = '(i8)' integer :: n read (*, fmt=fmt) n write (*, fmt=fmt) n end $

[Bug fortran/66724] New: ICE on input/output statements with wrong specifier data

2015-07-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: --- For most input/output statements and for several specifiers compilation aborts if assigned specifier key is not changeable (is a

[Bug fortran/66725] New: Issue with silent conversion int to char, struggling in gfc_widechar_to_char

2015-07-01 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: --- Sometimes a silent conversion from integer to character occurs where it should not IMO, but should give an

[Bug fortran/66725] Issue with silent conversion int to char, struggling in gfc_widechar_to_char

2015-07-01 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66725 --- Comment #1 from Gerhard Steinmetz --- Whereas : $ cat y_test_char_1.f90 program p print *, char(100) end $ gfortran y_test_char_1.f90 $ a.out d --- $ cat y_test_char_2.f90 program p print *, char(257) end $ gfortran y_test_char_

[Bug fortran/66725] Issue with silent conversion int to char, ICE if int too large

2015-07-02 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66725 --- Comment #2 from Gerhard Steinmetz --- A more extensive list of different cases : close (1, status=257) open (1, access=257) open (1, action=257) open (1, asynchronous=257) open (1, blank=257) open (1, delim=257) open (1

[Bug fortran/66724] ICE on input/output statements with wrong specifier data

2015-07-06 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66724 --- Comment #1 from Gerhard Steinmetz --- Longer scheme : backspace (1, iomsg=#) close (1, iomsg=#) close (1, status=#) endfile (1, iomsg=#) flush (1, iomsg=#) inquire (1, iomsg=#) open (1, access=#) open (1, action=#)

[Bug fortran/55501] [F03] ICE using MERGE in constant expr

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

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

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

[Bug fortran/71623] [5/6/7 Regression] Segfault when allocating deferred-length characters to size of a pointer

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

[Bug fortran/70524] [5/6/7 Regression] ICE when using -frepack-arrays -Warray-temporaries

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

[Bug fortran/71686] New: ICE on broken character continuation

2016-06-28 Thread gerhard.steinmetz.fort...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- With a broken character continuation : $ cat z1.f90 program p character(8) :: z z = 'abc& !end $ cat z2.f90 program p character(8) :: z = &

[Bug fortran/71687] New: ICE in omp_add_variable, at gimplify.c:5821

2016-06-28 Thread gerhard.steinmetz.fort...@t-online.de
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Using -fopenmp together with -fstack-arrays or -Ofast for a test similar to pr49792 (also related to pr69281) : $ cat z1.f90 subroutine s (n, x) integer :: n

[Bug fortran/71687] ICE in omp_add_variable, at gimplify.c:5821

2016-06-28 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71687 --- Comment #1 from Gerhard Steinmetz --- As known, case above works with "workshare" : $ cat z2.f90 subroutine s (n, x) integer :: n real :: x(n) !$omp parallel workshare x(1:n) = x(n:1:-1) !$omp end parallel workshare end

[Bug fortran/71688] New: ICE in analyze, at cgraphunit.c:632

2016-06-28 Thread gerhard.steinmetz.fort...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Aborting with gfortran-7-20160626, 6.1, 5.4, 4.9 : $ cat z1.f90 program p call s contains subroutine s real, save :: x[*] x = 2 block end

[Bug fortran/71688] ICE in analyze, at cgraphunit.c:632

2016-06-28 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71688 --- Comment #1 from Gerhard Steinmetz --- Modified a bit : $ cat z2.f90 program p call s contains subroutine s real :: x[*] = 1 block end block x = 2 end end $ gfortran-6 -fcoarray=lib z2.f90 z2.f90:1:0: pr

[Bug fortran/70524] [5/6/7 Regression] ICE when using -frepack-arrays -Warray-temporaries

2016-06-29 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70524 --- Comment #7 from Gerhard Steinmetz --- > The ICEs should only happen with --enabled-checking. Correct. Here is a small reproducer (wrong code) to experiment with : $ cat z1.f90 subroutine s(x) integer :: x(:) integer :: n = size(lbou

[Bug fortran/71703] New: ICE in wide_int_to_tree, at tree.c:1488

2016-06-29 Thread gerhard.steinmetz.fort...@t-online.de
Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Some problematic code snippets : $ cat z1.f90 program p type t1 end type type t2 integer :: n class(*), allocatable :: a end type type(t1

[Bug fortran/71703] ICE in wide_int_to_tree, at tree.c:1488

2016-06-29 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71703 --- Comment #1 from Gerhard Steinmetz --- Backtrace with gfortran-7-20160626 : z2.f90:10:0: print *, same_type_as(x, y%a) internal compiler error: in wide_int_to_tree, at tree.c:1487 0xca0093 wide_int_to_tree(tree_node*, generic_wide_int

[Bug fortran/71703] ICE in wide_int_to_tree, at tree.c:1488

2016-06-29 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71703 --- Comment #2 from Gerhard Steinmetz --- Whereas : $ cat z4.f90 program p type t1 end type type t2 integer :: n class(t1), allocatable :: a end type type(t1) :: x = t1() type(t2) :: y = t2(1, null()) print *, s

<    1   2   3   4   5   6   >