[Bug fortran/99840] [9/10/11 Regression] ICE in gfc_simplify_matmul, at fortran/simplify.c:4777

2021-03-31 Thread anlauf at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99840 --- Comment #7 from Harald Anlauf --- > The simple patch in comment #2 also works. I know. But it only covers the issue in gfc_simplify_transpose.

[Bug fortran/95053] [11.0 regression] ICE in f951: gfc_divide()

2020-05-11 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95053 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #2

[Bug fortran/84868] [7/8/9 Regression] ICE in gfc_conv_descriptor_offset, at fortran/trans-array.c:208

2019-03-22 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84868 --- Comment #6 from Harald Anlauf --- (In reply to Harald Anlauf from comment #5) > With the following patch len_trim is accepted in a specification expression: Just forget that.

[Bug fortran/84868] [7/8/9 Regression] ICE in gfc_conv_descriptor_offset, at fortran/trans-array.c:208

2019-03-22 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84868 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #5

[Bug fortran/86277] Presence of optional arguments not recognized for zero length arrays

2019-03-22 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86277 --- Comment #3 from Harald Anlauf --- (In reply to Harald Anlauf from comment #2) > Actually, the problem is not related to zero length arrays, but to the > constructor [integer::]. I think this is related to several other PRs. Looking at the

[Bug fortran/85797] ICE in gfc_element_size, at fortran/target-memory.c:126

2019-03-17 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85797 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #3

[Bug fortran/87045] pointer to array of character

2019-03-08 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87045 --- Comment #2 from Harald Anlauf --- With trunk it appears essential to have at least -fcheck=bounds as option, otherwise the testcase passes for me. The dump-tree for the critical code part (with -fcheck=bounds): p = t; p.span =

[Bug fortran/60091] Misleading error messages in rank-2 pointer assignment to rank-1 target

2019-03-07 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60091 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #2

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

2019-03-06 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71203 --- Comment #12 from Harald Anlauf --- The issues related to zero-length strings and zero-size arrays are fixed on trunk and 8-branch. Backport to 7-branch would require additional efforts, and as this PR is not about a regression, not done.

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

2019-03-05 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71203 --- Comment #9 from Harald Anlauf --- Patch submitted for the character-related issues: https://gcc.gnu.org/ml/fortran/2019-03/msg00017.html

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

2019-03-04 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71203 --- Comment #8 from Harald Anlauf --- The following obvious patch fixes the character-related issues (z1,z2,z3,z3a,z3b): Index: expr.c === --- expr.c (revision 269357) +++

[Bug fortran/89266] ICE with TRANSFER of len=0 character array constructor

2019-03-02 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89266 --- Comment #13 from Harald Anlauf --- On 03/02/19 12:48, dominiq at lps dot ens.fr wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89266 > > Dominique d'Humieres changed: > >What|Removed |Added >

[Bug fortran/77604] ICE in get_frame_type, at tree-nested.c:208

2019-02-28 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77604 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #4

[Bug fortran/68544] ICE trying to pass derived type constructor as a function

2019-02-28 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68544 --- Comment #9 from Harald Anlauf --- (In reply to kargl from comment #8) > Index: gcc/fortran/resolve.c > === > --- gcc/fortran/resolve.c (revision 266281) > +++

[Bug fortran/84779] [7/8/9 Regression] Compiling gfortran.fortran-torture/execute/entry_4.f90 with -O1 or -Os and -fdefault-integer-8 gives an ICE

2019-02-25 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84779 --- Comment #6 from Harald Anlauf --- Adding the option -fno-tree-sra to -O1 (or -Os for the original case) makes the ICE go away for me.

[Bug fortran/89492] [9 Regression] Endless compilation of an invalid TRANSFER after r269177

2019-02-25 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89492 --- Comment #4 from Harald Anlauf --- Patch with slightly extended testcase posted here: https://gcc.gnu.org/ml/fortran/2019-02/msg00218.html

[Bug fortran/89492] [9 Regression] Endless compilation of an invalid TRANSFER after r269177

2019-02-25 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89492 --- Comment #3 from Harald Anlauf --- I found another issue for uses of transfer('',['']), so here's an updated version with a clearer error message: Index: gcc/fortran/check.c ===

[Bug fortran/89492] [9 Regression] Endless compilation of an invalid TRANSFER after r269177

2019-02-25 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89492 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #1

[Bug fortran/84779] [7/8/9 Regression] Compiling gfortran.fortran-torture/execute/entry_4.f90 with -O1 or -Os and -fdefault-integer-8 gives an ICE

2019-02-24 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84779 --- Comment #5 from Harald Anlauf --- With rev. 269177 and on x86_64-pc-linux-gnu, I now see the ICE only at -O1, but no longer at -Os. After a frustrating debugging session, I decided to look at the -fdump-tree-all for all options -O0 ... -O2,

[Bug fortran/89266] ICE with TRANSFER of len=0 character array constructor

2019-02-23 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89266 --- Comment #10 from Harald Anlauf --- (In reply to Harald Anlauf from comment #9) > A patch that does this has been posted here: > > https://gcc.gnu.org/ml/fortran/2019-02/msg00153.html This patch also fixes PR88326.

[Bug fortran/88227] ICE in gfc_convert_boz, at fortran/target-memory.c:788

2019-02-21 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88227 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #2

[Bug fortran/87103] [OOP] ICE in gfc_new_symbol() due to overlong symbol name

2019-02-21 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87103 --- Comment #4 from Harald Anlauf --- (In reply to Dominique d'Humieres from comment #3) > Patch at https://gcc.gnu.org/ml/fortran/2018-09/msg00044.html. Status of this patch? (The ICE is still there).

[Bug fortran/83057] OPEN without a filename and without STATUS='SCRATCH' could produce a warning

2019-02-20 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83057 --- Comment #5 from Harald Anlauf --- Patch submitted: https://gcc.gnu.org/ml/fortran/2019-02/msg00176.html

[Bug fortran/83057] OPEN without a filename and without STATUS='SCRATCH' could produce a warning

2019-02-20 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83057 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #4

[Bug fortran/86248] [7/8/9 Regression] LEN_TRIM in specification expression causes link failure

2019-02-20 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86248 --- Comment #4 from Harald Anlauf --- Some digging shows that the name mangling is done in trans-decl.c, gfc_sym_mangled_identifier. Strangely, the funny name mangling comes from the component fn_result_spec being set in resolve.c,

[Bug fortran/88326] [7/8/9 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6085

2019-02-19 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88326 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #5

[Bug fortran/86248] [7/8/9 Regression] LEN_TRIM in specification expression causes link failure

2019-02-19 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86248 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #3

[Bug fortran/89365] Inquiry functions for assumed rank objects fail

2019-02-19 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89365 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #2

[Bug fortran/89266] ICE with TRANSFER of len=0 character array constructor

2019-02-19 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89266 --- Comment #9 from Harald Anlauf --- (In reply to Harald Anlauf from comment #8) > I have a 'half-patch' that tries to change gfc_target_expr_size() > to return a bool which is true for success and false for failure, > and then deal with this

[Bug fortran/88299] [F18] COMMON in a legacy module produces bogus warnings in dependent code

2019-02-17 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88299 Harald Anlauf changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/89077] ICE using * as len specifier for character parameter

2019-02-17 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89077 --- Comment #19 from Harald Anlauf --- The issues reported in comment #0, #1 and #3 should be fixed on trunk. The fix for comment #0 has been backported to 7- and 8-branches. Can the OP please confirm that the reported issues have been fixed?

[Bug fortran/89077] ICE using * as len specifier for character parameter

2019-02-15 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89077 --- Comment #17 from Harald Anlauf --- (In reply to Harald Anlauf from comment #16) > Regarding the unwanted padding with \0, the following patch seems to > solve the issue with transfer. Regtested cleanly and submitted here:

[Bug fortran/89077] ICE using * as len specifier for character parameter

2019-02-14 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89077 --- Comment #16 from Harald Anlauf --- Regarding the unwanted padding with \0, the following patch seems to solve the issue with transfer. Index: decl.c === --- decl.c

[Bug fortran/88248] [F18] Bogus warning about obsolescent feature: Labeled DO statement

2019-02-14 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88248 --- Comment #9 from Harald Anlauf --- Fixed.

[Bug fortran/88248] [F18] Bogus warning about obsolescent feature: Labeled DO statement

2019-02-13 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88248 --- Comment #7 from Harald Anlauf --- Patch submitted: https://gcc.gnu.org/ml/fortran/2019-02/msg00112.html

[Bug fortran/88248] [F18] Bogus warning about obsolescent feature: Labeled DO statement

2019-02-12 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88248 --- Comment #6 from Harald Anlauf --- Moving the check from gfc_define_st_label to gfc_reference_st_label: Index: symbol.c === --- symbol.c(revision 268826) +++ symbol.c

[Bug fortran/88299] [F18] COMMON in a legacy module produces bogus warnings in dependent code

2019-02-11 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88299 --- Comment #5 from Harald Anlauf --- Patch passed regtesting and was submitted: https://gcc.gnu.org/ml/fortran/2019-02/msg00097.html

[Bug fortran/88299] [F18] COMMON in a legacy module produces bogus warnings in dependent code

2019-02-11 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88299 --- Comment #4 from Harald Anlauf --- I'm currently regtesting the following patch: Index: gcc/fortran/resolve.c === --- gcc/fortran/resolve.c (revision 268778) +++

[Bug fortran/89266] ICE with TRANSFER of len=0 character array constructor

2019-02-11 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89266 --- Comment #8 from Harald Anlauf --- It's not as trivial as I had hoped. The point is that gfc_element_size() and gfc_target_expr_size() are returning size 0 for the source expression, which is an entirely correct value. However, they also

[Bug fortran/89266] ICE with TRANSFER of len=0 character array constructor

2019-02-10 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89266 --- Comment #7 from Harald Anlauf --- (In reply to Harald Anlauf from comment #6) > The problem might be here: > > check.c: gfc_calculate_transfer_sizes > > 5482 /* Calculate the size of the source. */ > 5483 *source_size =

[Bug fortran/89266] ICE with TRANSFER of len=0 character array constructor

2019-02-10 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89266 --- Comment #6 from Harald Anlauf --- The problem might be here: check.c: gfc_calculate_transfer_sizes 5482 /* Calculate the size of the source. */ 5483 *source_size = gfc_target_expr_size (source); 5484 if (*source_size == 0)

[Bug fortran/89266] ICE with TRANSFER of len=0 character array constructor

2019-02-10 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89266 --- Comment #5 from Harald Anlauf --- Alternative versions to test case #2: program test implicit none character(1), save :: z = transfer ([''], '*') ! ICE ! character(1), save :: z = transfer ([character(0) ::

[Bug fortran/89266] ICE with TRANSFER of len=0 character array constructor

2019-02-10 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89266 --- Comment #4 from Harald Anlauf --- (In reply to Thomas Koenig from comment #1) > Goes back a long time, at least to gcc 6. > > I also think that this is valid code, but if somebody can find > language in the standard that says otherwise,

[Bug fortran/89266] ICE with TRANSFER of len=0 character array constructor

2019-02-10 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89266 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #3

[Bug fortran/89077] ICE using * as len specifier for character parameter

2019-02-05 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89077 --- Comment #12 from Harald Anlauf --- Further variant: ==> f4.f90 <== character(1), save :: y = transfer ([('a'(1:1),i=1,1)], 'x') print *, y end generates exactly the same code as f3, although it passes along slightly different

[Bug fortran/89077] ICE using * as len specifier for character parameter

2019-02-05 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89077 --- Comment #11 from Harald Anlauf --- I'm currently using the following minimal testcases for further debugging: ==> f1.f90 <== character(1), parameter :: u = transfer ([('a'(i:i),i=1,1)], 'x') print *, u end ==> f2.f90 <==

[Bug fortran/89077] ICE using * as len specifier for character parameter

2019-02-04 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89077 --- Comment #10 from Harald Anlauf --- The ICE in comment #0 is fixed on trunk so far. The ICE is comment #1 is occurring on a different path and is under further investigation, as well as the other wrong-code issues.

[Bug fortran/89077] ICE using * as len specifier for character parameter

2019-01-31 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89077 --- Comment #8 from Harald Anlauf --- OK, here's another one for fun: program pr89077_4 implicit none character(*), parameter :: s = 7HForward print *, '#', s, '#', len (s) end program pr89077_4 prints: #Forward # 8 This

[Bug fortran/89077] ICE using * as len specifier for character parameter

2019-01-31 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89077 --- Comment #7 from Harald Anlauf --- (In reply to Harald Anlauf from comment #6) Playing around and getting completely lost during a gdb session, I became suspicious that the second issue has to do with missed padding that interestingly occurs

[Bug fortran/89077] ICE using * as len specifier for character parameter

2019-01-29 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89077 --- Comment #6 from Harald Anlauf --- (In reply to Harald Anlauf from comment #5) It does not fix the issue in comment #3. In fact, the simpler testcase program pr89077_3 implicit none character(20), parameter :: input = 'Forward'

[Bug fortran/89077] ICE using * as len specifier for character parameter

2019-01-29 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89077 --- Comment #5 from Harald Anlauf --- The following patch fixes the testcase and seems to pass regression testing. Index: gcc/fortran/decl.c === --- gcc/fortran/decl.c (revision

[Bug fortran/89077] ICE using * as len specifier for character parameter

2019-01-29 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89077 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #4

[Bug fortran/85868] Subarray of a pointer array associated with a pointer dummy argument

2019-01-28 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85868 --- Comment #6 from Harald Anlauf --- Another testcase suitable for debugging is the following, which better shows correspondence for pre-F2008 and F2008+ variants: program test implicit none integer, pointer :: t(:), u(:) integer

[Bug libfortran/89020] close(status='DELETE') does not remove file

2019-01-26 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89020 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #13

[Bug fortran/34871] Flavor VARIABLE vs. FUNCTION: Accepts invalid

2019-01-25 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34871 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #5

[Bug fortran/85868] Subarray of a pointer array associated with a pointer dummy argument

2019-01-24 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85868 --- Comment #5 from Harald Anlauf --- Better testcase for debugging: program pr85858 implicit none integer, pointer :: t(:) integer :: i, lb lb = -1 allocate (t(lb:5)) do i = lb, 5 t(i) = i end do call te (t( :))

[Bug fortran/85868] Subarray of a pointer array associated with a pointer dummy argument

2019-01-23 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85868 --- Comment #4 from Harald Anlauf --- Reduced testcase: program pr85858 implicit none ! integer, allocatable, target :: t(:) integer, pointer :: t(:) => null() integer :: i, lb = 0 ! run under debugger, or set lb to 1

[Bug fortran/85868] Subarray of a pointer array associated with a pointer dummy argument

2019-01-23 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85868 --- Comment #3 from Harald Anlauf --- Something has changed recently in 9-trunk, I now get with rev.268162 for the testcase in comment #0: 2. Printing the array bounds in subroutine te gives the expected values, so it must be

[Bug fortran/87336] [8/9 regression] wrong output for pointer dummy assiocated to target actual argument

2019-01-23 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87336 --- Comment #6 from Harald Anlauf --- The patch in comment #3 seems to apply to gcc-8, but I haven't regtested it. Paul, do you intend to backport it?

[Bug fortran/57553] [F08] Valid use of STORAGE_SIZE rejected, bad error message for invalid use

2019-01-22 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57553 --- Comment #7 from Harald Anlauf --- Patch submitted for review: https://gcc.gnu.org/ml/fortran/2019-01/msg00201.html

[Bug fortran/88579] Calculating power of powers of two

2019-01-20 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88579 --- Comment #4 from Harald Anlauf --- Patch submitted here: https://gcc.gnu.org/ml/fortran/2019-01/msg00163.html

[Bug libfortran/88776] Namelist read from stdin: loss of data

2019-01-10 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88776 --- Comment #3 from Harald Anlauf --- Created attachment 45407 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45407=edit Self-contained testcase I've been able to produce a self-contained testcase, which may aid debugging. While reducing

[Bug libfortran/88776] Namelist read from stdin: loss of data

2019-01-09 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88776 --- Comment #1 from Harald Anlauf --- I wrote "loss of data" because the second (valid) namelist could not be properly read because of stat /= 0.

[Bug libfortran/88776] New: Namelist read from stdin: loss of data

2019-01-09 Thread anlauf at gmx dot de
Assignee: unassigned at gcc dot gnu.org Reporter: anlauf at gmx dot de Target Milestone: --- Reading namelist from unit 5 may skip valid data later when an error is encountered. This problem does not occur when another unit number is used. Example: % cat gfcbug154.f90

[Bug fortran/88748] IS_CONTIGUOUS mishandles arrays of derived type components

2019-01-07 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88748 Harald Anlauf changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug fortran/88748] New: IS_CONTIGUOUS mishandles arrays of derived type components

2019-01-07 Thread anlauf at gmx dot de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: anlauf at gmx dot de Target Milestone: --- The patch committed to fix to PR 45424 does not handle the examples given there in comment 1: type t integer :: i, j end type t type(t) :: x(5

[Bug fortran/45424] [F08] Add IS_CONTIGUOUS intrinsic

2019-01-03 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45424 Harald Anlauf changed: What|Removed |Added Attachment #45322|0 |1 is obsolete|

[Bug fortran/45424] [F08] Add IS_CONTIGUOUS intrinsic

2019-01-02 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45424 Harald Anlauf changed: What|Removed |Added Attachment #45292|0 |1 is obsolete|

[Bug fortran/45424] [F08] Add IS_CONTIGUOUS intrinsic

2018-12-27 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45424 --- Comment #6 from Harald Anlauf --- Created attachment 45292 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45292=edit Update of Tobias' patch to 9-trunk (except for ChangeLog) I've tried to update Tobias' patch so that it compiles with

[Bug fortran/45424] [F08] Add IS_CONTIGUOUS intrinsic

2018-12-27 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45424 --- Comment #5 from Harald Anlauf --- Looking at the F2k18 draft, I see some updates and clarifications: 16.9.105 IS_CONTIGUOUS (ARRAY) Description. Array contiguity test (8.5.7). Class. Inquiry function. Argument. ARRAY may be of any type. It

[Bug fortran/88579] Calculating power of powers of two

2018-12-23 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88579 --- Comment #3 from Harald Anlauf --- Suggested testcase for the patch in comment #1, derived from power_7.f90: ! { dg-do run } ! { dg-additional-options "-fdump-tree-original" } ! Test optimizations for bases that are powers of 2. program p

[Bug testsuite/80661] make check-gcc RUNTESTFLAGS="dg.exp=g*" runs all the tests in gcc.dg

2018-12-23 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80661 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #2

[Bug fortran/88579] Calculating power of powers of two

2018-12-22 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88579 --- Comment #1 from Harald Anlauf --- OK, here's my proof-of-concept patch (not cleaned up): Index: gcc/fortran/trans-expr.c === --- gcc/fortran/trans-expr.c(revision 267353)

[Bug fortran/85544] [7/8/9 Regression] ICE in gfc_conv_scalarized_array_ref, at fortran/trans-array.c:3385

2018-12-22 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85544 --- Comment #13 from Harald Anlauf --- (In reply to Thomas Koenig from comment #12) > (In reply to Harald Anlauf from comment #10) > > > Handling positive powers of 2 should be straightforward: > > > > The condition is sth. like > > > > if

[Bug fortran/85544] [7/8/9 Regression] ICE in gfc_conv_scalarized_array_ref, at fortran/trans-array.c:3385

2018-12-22 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85544 --- Comment #10 from Harald Anlauf --- (In reply to Thomas Koenig from comment #8) > * trans-expr.c (gfc_conv_power_op): Handle cases of 1**integer, > (2|4|8|16) ** integer and (-1) ** integer. Handling positive powers of 2 should

[Bug tree-optimization/88533] [9 Regression] Higher performance penalty of array-bounds checking for sparse-matrix vector multiply

2018-12-18 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88533 --- Comment #9 from Harald Anlauf --- (In reply to Richard Biener from comment #8) > Created attachment 45252 [details] > patch > > Even though the patch doesn't hoist the invariant condition the speed is > back with it. > > Can you verify

[Bug fortran/88533] [9 Regression] Higher performance penalty of array-bounds checking for sparse-matrix vector multiply

2018-12-17 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88533 --- Comment #4 from Harald Anlauf --- Without CONTIGUOUS, I see -O3 brings gcc-9 to the level of gcc-7 or gcc-8: baseline + -O3 -funroll-loops -fcheck=bounds : 7: 1.57 8: 1.40 9: 1.57 baseline + -O3 -funroll-loops -fcheck=bounds -fno-tree-ch

[Bug fortran/88533] [9 Regression] Higher performance penalty of array-bounds checking for sparse-matrix vector multiply

2018-12-17 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88533 --- Comment #3 from Harald Anlauf --- (In reply to Thomas Koenig from comment #2) > Strange. > > I ran the code (with the data) a few times on my Ryzen 7 home > system. > > Here are some timings (run 10 times): [snipped] > Is it possible that

[Bug fortran/88533] [9 Regression] Higher performance penalty of array-bounds checking for sparse-matrix vector multiply

2018-12-17 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88533 --- Comment #1 from Harald Anlauf --- Created attachment 45250 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45250=edit Sparse matrix meta-data

[Bug fortran/88533] New: [9 Regression] Higher performance penalty of array-bounds checking for sparse-matrix vector multiply

2018-12-17 Thread anlauf at gmx dot de
Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: anlauf at gmx dot de Target Milestone: --- Created attachment 45249 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45

[Bug fortran/88399] program segmentation faults when out-of-memory

2018-12-13 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88399 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #2

[Bug fortran/87764] gfortran crashes with illegal code

2018-12-12 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87764 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #2

[Bug fortran/85750] [7/8/9 Regression] Default initialization of derived type array missing

2018-12-12 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85750 --- Comment #4 from Harald Anlauf --- (In reply to Stephan Kramer from comment #0) Workaround: > function make_list(i) > integer, intent(in) :: i > type(ilist), dimension(2) :: make_list make_list = ilist() >

[Bug fortran/85750] [7/8/9 Regression] Default initialization of derived type array missing

2018-12-12 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85750 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #3

[Bug fortran/85544] [7/8/9 Regression] ICE in gfc_conv_scalarized_array_ref, at fortran/trans-array.c:3385

2018-12-12 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85544 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #5

[Bug fortran/84779] [7/8/9 Regression] Compiling gfortran.fortran-torture/execute/entry_4.f90 with -O1 or -Os and -fdefault-integer-8 gives an ICE

2018-12-12 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84779 --- Comment #4 from Harald Anlauf --- (In reply to Dominique d'Humieres from comment #3) > The code in comment 2 compiles for me with -fdefault-integer-8 (I get the > error without it). Oh, now I see that the issue is -O1 and/or -Os, whereas

[Bug fortran/84779] [7/8/9 Regression] Compiling gfortran.fortran-torture/execute/entry_4.f90 with -O1 or -Os and -fdefault-integer-8/9 gives an ICE

2018-12-12 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84779 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #2

[Bug fortran/88364] [9 Regression] Wrong-code due to CLOBBER

2018-12-09 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88364 --- Comment #5 from Harald Anlauf --- (In reply to Thomas Koenig from comment #4) > A simple fix is not to do the clobbers if there is a reference: The fix in c#4 fixes the testcase in c#2 for me. I'll give it a try.

[Bug fortran/71860] [7/8/9 Regression] [OOP] ICE on pointing to null(mold), verify_gimple failed

2018-12-07 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71860 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #5

[Bug libfortran/88411] [9 Regression] Random crashes for ASYNCHRONOUS writes (bad locking?)

2018-12-07 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88411 --- Comment #1 from Harald Anlauf --- Further data points: - removing the asynchronous='yes' for the first OPEN has no effect, - removing the asynchronous='yes' for the second OPEN makes the problem disappear

[Bug libfortran/88411] New: [9 Regression] Random crashes for ASYNCHRONOUS writes (bad locking?)

2018-12-07 Thread anlauf at gmx dot de
Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: anlauf at gmx dot de Target Milestone: --- Created attachment 45187 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45187=edit Compile with -fopenmp,

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-07 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #15 from Harald Anlauf --- (In reply to Jakub Jelinek from comment #14) > Author: jakub > Date: Thu Dec 6 10:28:31 2018 > New Revision: 266847 > > URL: https://gcc.gnu.org/viewcvs?rev=266847=gcc=rev This fixes the original

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-04 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #7 from Harald Anlauf --- (In reply to kargl from comment #6) > (In reply to Harald Anlauf from comment #5) > > > > A derived type with component initialization (like t_fileinfo) should > > implicitly get the SAVE attribute, which

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-04 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #5 from Harald Anlauf --- (In reply to Richard Biener from comment #4) > Confirmed. We do not expect > > CHAIN.10->gattr = {CLOBBER}; > > I believe the FE inserts these now to better share stack slots: Thanks for pointing to the

[Bug fortran/88298] Bogus conversion warning for CSHIFT with -fno-range-check -m64

2018-12-03 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88298 --- Comment #1 from Harald Anlauf --- The problem appears here: Breakpoint 1, gfc_resolve_cshift (f=0x2431950, array=0x23bc1f0, shift=0x23bc880, dim=0x23bcce0) at ../../trunk/gcc/fortran/iresolve.c:836 836 gfc_resolve_dim_arg

[Bug fortran/88299] [9 Regression] COMMON in a legacy module produces bogus warnings in dependent code

2018-12-03 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88299 --- Comment #1 from Harald Anlauf --- The warning was introduced in: r260705 | janus | 2018-05-25 08:09:10 +0200 (Fri, 25 May 2018) | 16 lines 2018-05-25 Janus Weil PR fortran/85839 * match.c (gfc_match_block_data): Call

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-03 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #3 from Harald Anlauf --- Created attachment 45147 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45147=edit Minimal netcdf-fortran part for the reproducer Compile the netcdf.f90 header before the testcase.

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-02 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #1 from Harald Anlauf --- No special options used, just: % gfc-trunk -c -I/opt/gcc/9/pkg/netcdf/include gfcbug152.f90 (where above path hold the gfortran-9 specific netcdf.mod & friends).

[Bug fortran/88304] New: [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-02 Thread anlauf at gmx dot de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: anlauf at gmx dot de Target Milestone: --- Created attachment 45136 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45136=edit Reproducer Current 9-trunk crashes for

[Bug fortran/88300] New: [9 Regression] Bogus 'Labeled DO statement' for a labeled CONTINUE

2018-12-01 Thread anlauf at gmx dot de
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: anlauf at gmx dot de Target Milestone: --- I get with 9-trunk: % cat gfcbug151.f90 subroutine gfcbug151 () ! goto 999 999 continue end subroutine gfcbug151 % gfc-trunk -c -std

  1   2   3   4   5   6   7   >