[Bug fortran/81978] Passing component of a parameter array to a subroutine causes SIGBUS crash

2025-01-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81978 --- Comment #3 from anlauf at gcc dot gnu.org --- Created attachment 60198 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60198&action=edit Draft patch This patch fixes the issue by preventing the write-back to read-only memory of the actua

[Bug libfortran/118536] G formatted printing of UNSIGNED fails

2025-01-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118536 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|ASS

[Bug libfortran/118536] G formatted printing of UNSIGNED fails

2025-01-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118536 anlauf at gcc dot gnu.org changed: What|Removed |Added Ever confirmed|0 |1 Keywords|

[Bug libfortran/118536] G formatted printing of UNSIGNED fails

2025-01-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118536 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot gnu

[Bug libfortran/118536] G formatted printing of UNSIGNED fails

2025-01-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118536 --- Comment #1 from anlauf at gcc dot gnu.org --- Patch: diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c index 0177e052062..59871ac1982 100644 --- a/libgfortran/io/transfer.c +++ b/libgfortran/io/transfer.c @@ -2363,6 +2363,7

[Bug libfortran/118536] New: G formatted printing of UNSIGNED fails

2025-01-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118536 Bug ID: 118536 Summary: G formatted printing of UNSIGNED fails Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortra

[Bug fortran/106603] Problem with character(:), allocatable, intent(out) :: err for functions which return fixed arrays

2025-01-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106603 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |RESOLVED Target Milestone|

[Bug fortran/68152] ICE on declaring array result for function and entry

2025-01-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68152 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug fortran/106005] (F2023) Support for REDUCE clause in DO CONCURRENT loop

2025-01-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106005 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug fortran/110076] ICE on mutually recursive derived types.

2025-01-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110076 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |WAITING --- Comment #2 from

[Bug fortran/107362] Internal compiler error for recursive class

2025-01-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107362 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |WAITING --- Comment #6 from

[Bug fortran/118499] Exponentiation of UNSIGNED is rejected

2025-01-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118499 --- Comment #17 from anlauf at gcc dot gnu.org --- A type promotion or conversion for binary operations is a real issue. While it is feasible, we should step back and draw a line what is more or less consistent with the spirit of the UNSIGNED pro

[Bug fortran/118499] Exponentiation of UNSIGNED is rejected

2025-01-16 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118499 --- Comment #13 from anlauf at gcc dot gnu.org --- (In reply to kargls from comment #12) > (In reply to Thomas Koenig from comment #9) > > Question is, what should we permit... > > > > For 'normal' operations, only unsigned op unsigned is permit

[Bug libfortran/118406] Printing large UNSIGNED(kind=16) crashes

2025-01-16 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118406 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|ASS

[Bug fortran/118499] Exponentiation of UNSIGNED is rejected

2025-01-16 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118499 --- Comment #11 from anlauf at gcc dot gnu.org --- (In reply to Jerry DeLisle from comment #10) > (In reply to Thomas Koenig from comment #9) > > Question is, what should we permit... > > > > For 'normal' operations, only unsigned op unsigned is

[Bug fortran/118441] [15 Regression] [openmp] ICE with assignment of PACK of string array

2025-01-16 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118441 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug libfortran/118406] Printing large UNSIGNED(kind=16) crashes

2025-01-16 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118406 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|

[Bug fortran/118499] Exponentiation of UNSIGNED is rejected

2025-01-15 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118499 --- Comment #4 from anlauf at gcc dot gnu.org --- (In reply to Thomas Koenig from comment #3) > (In reply to kargls from comment #2) > > Not Thomas, but ... > > > > https://j3-fortran.org/doc/year/24/24-116.txt > > > > The exponentiation operat

[Bug fortran/118499] Exponentiation of UNSIGNED is rejected

2025-01-15 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118499 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org -

[Bug fortran/118499] New: Exponentiation of UNSIGNED is rejected

2025-01-15 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118499 Bug ID: 118499 Summary: Exponentiation of UNSIGNED is rejected Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran

[Bug libfortran/118406] Printing large UNSIGNED(kind=16) crashes

2025-01-15 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118406 --- Comment #4 from anlauf at gcc dot gnu.org --- Created attachment 60164 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60164&action=edit Draft patch This fixes the crash by switching over to another round in the conversion.

[Bug fortran/118471] Missed folding of descriptor span field for contiguous Fortran pointers

2025-01-15 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118471 --- Comment #4 from anlauf at gcc dot gnu.org --- (In reply to Tobias Burnus from comment #2) > Seems as if a special case for Fortran pointers is needed, where the a->span > has to be replaced by the byte size of the base type. > > (Needs some

[Bug fortran/118441] [15 Regression] [openmp] ICE with assignment of PACK of string array

2025-01-15 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118441 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||burnus at gcc dot gnu.org --

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

2025-01-15 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71884 anlauf at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |15.0 Status|NEW

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

2025-01-15 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71884 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org ---

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

2025-01-14 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71884 --- Comment #8 from anlauf at gcc dot gnu.org --- Created attachment 60157 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60157&action=edit Patch This patch rejects NULL() as source-expr, without or with MOLD. I believe that F03:C632 can b

[Bug fortran/106692] [12/13/14 Regression] Cray pointer comparison wrongly optimized away

2025-01-13 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106692 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Bug fortran/118441] [15 Regression] [openmp] ICE with assignment of PACK of string array

2025-01-13 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118441 --- Comment #3 from anlauf at gcc dot gnu.org --- Disabing the following part of r15-6508-gbca8b13bd7bc3d fixes the ICE: diff --git a/gcc/fortran/trans-decl.cc b/gcc/fortran/trans-decl.cc index 7d3a9ed4a24..814a2055eca 100644 --- a/gcc/fortran/t

[Bug fortran/118441] [15 Regression] [openmp] ICE with assignment of PACK of string array

2025-01-13 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118441 --- Comment #2 from anlauf at gcc dot gnu.org --- Besides PACK, there are further transformational intrinsics leading to an ICE: s(1:1) = pack (s(1:1), mask=.true.) ! ICE s(1:1) = reshape (s(1:1), [1]) ! ICE s(1:1) = spread (s(1), 1,

[Bug fortran/118441] [15 Regression] [openmp] ICE with assignment of PACK of string array

2025-01-13 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118441 --- Comment #1 from anlauf at gcc dot gnu.org --- Further reduced: subroutine sub(s) character(len=*), intent(inout) :: s(:) s(1:1) = pack (s(1:1), mask=.true.) ! ICE end subroutine sub There is no difference in the tree dump between -fno-

[Bug fortran/115788] [F2018] Implement OUT_OF_RANGE

2025-01-12 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115788 anlauf at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |15.0

[Bug fortran/115788] [F2018] Implement OUT_OF_RANGE

2025-01-12 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115788 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|ASS

[Bug fortran/118441] [15 Regression] [openmp] ICE with assignment of PACK of string array

2025-01-12 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118441 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||ice-on-valid-code, openmp

[Bug fortran/118441] New: [15 Regression] [openmp] ICE with assignment of PACK of string array

2025-01-12 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118441 Bug ID: 118441 Summary: [15 Regression] [openmp] ICE with assignment of PACK of string array Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

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

2025-01-12 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71884 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||ice-on-invalid-code --- Comme

[Bug libfortran/118406] Printing large UNSIGNED(kind=16) crashes

2025-01-10 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118406 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org

[Bug fortran/115788] [F2018] Implement OUT_OF_RANGE

2025-01-10 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115788 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #3 from

[Bug libfortran/118406] Printing large UNSIGNED(kind=16) crashes

2025-01-10 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118406 --- Comment #1 from anlauf at gcc dot gnu.org --- Note that the "standard" print *, huge(0_16) works on x86-64, where kind=16 is available, as well as uint128.

[Bug libfortran/118406] Printing large UNSIGNED(kind=16) crashes

2025-01-10 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118406 anlauf at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P4 Component|fortra

[Bug fortran/118406] New: Printing large UNSIGNED(kind=16) crashes

2025-01-10 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118406 Bug ID: 118406 Summary: Printing large UNSIGNED(kind=16) crashes Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran

[Bug fortran/118337] [15 Regression] Fortran *.mod compatibility

2025-01-07 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118337 --- Comment #6 from anlauf at gcc dot gnu.org --- (In reply to kargls from comment #4) > If you now compile the following with 14 > > program bar > use foo > print *, len(f_c_string(c_char_'abc')) > end program > > you get > > % gf

[Bug fortran/103391] [12/13/14/15 Regression] ICE: gimplification failed since r7-4021-g574284e9c49687d8

2025-01-06 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103391 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org --

[Bug fortran/115788] [F2018] Implement OUT_OF_RANGE

2025-01-06 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115788 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot gnu

[Bug fortran/108434] [12/13/14/15 Regression] ICE in class_allocatable, at fortran/expr.cc:5000

2025-01-06 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108434 --- Comment #14 from anlauf at gcc dot gnu.org --- (In reply to Paul Thomas from comment #13) > BTW The attached patch regression tests OK :-) Simple and effective. Nice! Regarding the treatment of the error message: do we need to help the tra

[Bug fortran/106692] [12/13/14 Regression] Cray pointer comparison wrongly optimized away

2025-01-04 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106692 --- Comment #21 from anlauf at gcc dot gnu.org --- (In reply to Paul Thomas from comment #20) > (In reply to anlauf from comment #19) > > Will wait some time before considering backports. > > Hi Harald, > > In spite of my nervousness about the

[Bug fortran/106692] [12/13/14 Regression] Cray pointer comparison wrongly optimized away

2025-01-03 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106692 anlauf at gcc dot gnu.org changed: What|Removed |Added Summary|[12/13/14/15 Regression]|[12/13/14 Regression] Cray

[Bug fortran/106692] [12/13/14/15 Regression] Cray pointer comparison wrongly optimized away

2025-01-02 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106692 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot gnu

[Bug fortran/106692] [12/13/14/15 Regression] Cray pointer comparison wrongly optimized away

2025-01-01 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106692 --- Comment #16 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #15) > I have tried replacing TREE_VOLATILE by TREE_STATIC, i.e. > > + // Hack: prevent optimization of comparison of Cray pointers > (PR106692) > + if

[Bug fortran/106692] [12/13/14/15 Regression] Cray pointer comparison wrongly optimized away

2025-01-01 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106692 anlauf at gcc dot gnu.org changed: What|Removed |Added Known to work||6.4.1 CC|

[Bug fortran/106692] [12/13/14/15 Regression] Cray pointer comparison wrongly optimized away

2024-12-31 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106692 anlauf at gcc dot gnu.org changed: What|Removed |Added Known to fail||10.5.0, 11.5.0, 12.4.1,

[Bug fortran/106692] [12/13/14/15 Regression] Cray pointer comparison wrongly optimized away

2024-12-31 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106692 --- Comment #11 from anlauf at gcc dot gnu.org --- Created attachment 60009 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60009&action=edit Hackish solution for Cray pointers

[Bug fortran/106692] [12/13/14/15 Regression] Cray pointer comparison wrongly optimized away

2024-12-30 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106692 --- Comment #9 from anlauf at gcc dot gnu.org --- (In reply to Paul Thomas from comment #8) > Following your remarks, I tried setting the pointer decl tree static. That > resulted in the test succeeding for -O but it crashed at higher levels of >

[Bug fortran/117643] F_C_STRING from F23 is missing

2024-12-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117643 --- Comment #29 from anlauf at gcc dot gnu.org --- (In reply to Jerry DeLisle from comment #28) > --- snip --- > > > In iso-c-binding.def, one finds > > > > NAMED_CHARKNDCST (ISOCBINDING_CHAR, "c_char",gfc_default_character_kind) > > > > so ki

[Bug fortran/118179] [15 regression] ICE in gimplify

2024-12-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118179 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Bug fortran/118179] [15 regression] ICE in gimplify

2024-12-28 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118179 --- Comment #7 from anlauf at gcc dot gnu.org --- (In reply to Jürgen Reuter from comment #6) > Created attachment 59993 [details] > Reproducer Thanks for the reproducer. I can confirm the ICE after r15-6408, but it is fixed for me with r15-642

[Bug fortran/117643] F_C_STRING from F23 is missing

2024-12-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117643 --- Comment #22 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #21) > diff --git a/gcc/fortran/iresolve.cc b/gcc/fortran/iresolve.cc > index 580f8c8407d..759eb99a645 100644 > --- a/gcc/fortran/iresolve.cc > +++ b/gcc/fortran

[Bug fortran/117643] F_C_STRING from F23 is missing

2024-12-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117643 --- Comment #21 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #20) Replying to myself: > So if I come from the other side, which code to accept and which to diagnose, > I tried: > > if (string->ts.type != BT_CHARACTER >

[Bug fortran/117643] F_C_STRING from F23 is missing

2024-12-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117643 --- Comment #20 from anlauf at gcc dot gnu.org --- (In reply to Jerry DeLisle from comment #19) > (In reply to kargls from comment #17) > > I suppose the error in check.cc(gfc_check_f_c_string) that starts > > with > > > > if (string->ts.typ

[Bug fortran/118179] [15 regression] ICE in gimplify

2024-12-23 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118179 anlauf at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed||2024-12-23 Assigne

[Bug fortran/118179] [15.0 regression] ICE in gimplify

2024-12-23 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118179 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org --

[Bug fortran/104819] Reject NULL without MOLD as actual to an assumed-rank dummy

2024-12-21 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104819 --- Comment #20 from anlauf at gcc dot gnu.org --- Still missing: - handling of CLASS/unlimited polyporphic assumed-rank dummies - tightening of checks according to F2008/F2018 - fix testsuite fallout due to some invalid testcases (see comment#7

[Bug fortran/113928] Aliasing of pointer in expression

2024-12-20 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113928 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug fortran/118120] Wrong aliasing assumptions for Fortran POINTERs

2024-12-20 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118120 anlauf at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |15.0 Status|UNCO

[Bug fortran/113928] Aliasing of pointer in expression

2024-12-19 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113928 --- Comment #3 from anlauf at gcc dot gnu.org --- This bug seems to get fixed by the patch in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118120#c12

[Bug fortran/118120] Wrong aliasing assumptions for Fortran POINTERs

2024-12-19 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118120 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot gnu

[Bug fortran/118120] Wrong aliasing assumptions for Fortran POINTERs

2024-12-19 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118120 --- Comment #11 from anlauf at gcc dot gnu.org --- (In reply to kargls from comment #10) >> > It is completely irrelevant that "result" is a dummy. Just try it. > > And creating a temporary for *every lhs pointer* cannot be acceptable. > > There

[Bug fortran/118120] Wrong aliasing assumptions for Fortran POINTERs

2024-12-19 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118120 --- Comment #9 from anlauf at gcc dot gnu.org --- (In reply to kargls from comment #8) > (In reply to anlauf from comment #7) > > The following patch works and might be a reasonable compromise: > > > > diff --git a/gcc/fortran/trans-array.cc b/g

[Bug fortran/118120] Wrong aliasing assumptions for Fortran POINTERs

2024-12-19 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118120 --- Comment #7 from anlauf at gcc dot gnu.org --- The following patch works and might be a reasonable compromise: diff --git a/gcc/fortran/trans-array.cc b/gcc/fortran/trans-array.cc index 82a2ae1f747..985a26281ad 100644 --- a/gcc/fortran/trans-

[Bug fortran/118080] OPTIONAL, VALUE mishandled: type(c_ptr) – hidden argument missing, ICE with derived type

2024-12-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118080 --- Comment #1 from anlauf at gcc dot gnu.org --- (In reply to Tobias Burnus from comment #0) > It is unsurprising that this fails because trans-expr.cc has: > > static void > conv_dummy_value (gfc_se * parmse, gfc_expr * e, gfc_symbol * fsym, >

[Bug fortran/104819] Reject NULL without MOLD as actual to an assumed-rank dummy

2024-12-14 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104819 --- Comment #18 from anlauf at gcc dot gnu.org --- Patch for the case of derived type dummies: https://gcc.gnu.org/pipermail/fortran/2024-December/061410.html

[Bug fortran/117791] Segmentation fault when using -fcheck

2024-12-06 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117791 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug fortran/114022] ICE with a complex part%ref and nested structure constructor of complex array.

2024-12-03 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114022 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||ice-on-valid-code Last rec

[Bug fortran/117897] [13/14/15 Regression] Bug in gfortran compiled windows run time with the latest release (14.2.0)

2024-12-03 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117897 anlauf at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P4 Target Milestone|---

[Bug fortran/117897] [13/14/15 Regression] Bug in gfortran compiled windows run time with the latest release (14.2.0)

2024-12-03 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117897 anlauf at gcc dot gnu.org changed: What|Removed |Added Known to fail||13.3.0, 14.2.0, 15.0

[Bug fortran/117774] ICE passing imaginary part of complex array to assumed rank dummy

2024-12-02 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117774 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug fortran/117805] complex type, -Ofast and IEEE-754

2024-11-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117805 --- Comment #19 from anlauf at gcc dot gnu.org --- (In reply to kargls from comment #18) > I have no idea what you're trying to demonstrate. > By F2023, 16.9.53 if x is real in cmplx(x), then > y is set to 0. In addition, actual arguments are >

[Bug fortran/117805] complex type, -Ofast and IEEE-754

2024-11-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117805 --- Comment #17 from anlauf at gcc dot gnu.org --- (In reply to kargls from comment #16) > > That makes the conversion from real to complex sort of "slightly > > anti-linear": > > > >print *, cmplx (-1.), - cmplx (1.) > > > > gives: > > >

[Bug fortran/117805] complex type, -Ofast and IEEE-754

2024-11-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117805 --- Comment #15 from anlauf at gcc dot gnu.org --- (In reply to kargls from comment #14) > > > If 'r' is of type REAL and 'z' is of type COMPLEX, the Fortran standard > > > is clear that the interpretation is > > > > > > = r * z > > >

[Bug fortran/117842] Function wrongly returning empty character string if allocated on the heap

2024-11-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117842 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||wrong-code Ever confirme

[Bug libfortran/117820] Formatted output gives wrong result.

2024-11-28 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117820 --- Comment #3 from anlauf at gcc dot gnu.org --- (In reply to Jerry DeLisle from comment #2) > If I add a couple more print statements: > > print *, -9223372036854775807 > print *, -9223372036854775808 > > $ gfc -frange-check -Wall pr11782

[Bug fortran/117805] complex type, -Ofast and IEEE-754

2024-11-28 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117805 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org --

[Bug fortran/95215] [OMP] internal compiler error: in gimplify_expr, at gimplify.c:14079

2024-11-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95215 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|-

[Bug fortran/37336] [F03] Finish derived-type finalization

2024-11-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37336 Bug 37336 depends on bug 97122, which changed state. Bug 97122 Summary: Spurious FINAL ... must be in the specification part of a MODULE https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97122 What|Removed |Added --

[Bug fortran/97122] Spurious FINAL ... must be in the specification part of a MODULE

2024-11-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97122 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|-

[Bug fortran/100094] Undefined pointers have incorrect rank when using optimization

2024-11-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100094 anlauf at gcc dot gnu.org changed: What|Removed |Added Known to fail||10.5.0 Target Milestone|--

[Bug fortran/46532] [OMP] missing error for loop bounds missing an attribute

2024-11-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46532 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |RESOLVED Target Milestone|-

[Bug fortran/100097] Unlimited polymorphic pointers and allocatables have incorrect rank

2024-11-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100097 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||paal at levold dot net --- C

[Bug fortran/102275] Assumed rank, unlimited polymorphic pointer gives incorrect behaviour

2024-11-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102275 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug fortran/117791] Segmentation fault when using -fcheck

2024-11-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117791 anlauf at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P4 Known to fail|

[Bug fortran/117797] [13/14/15 Regression] ICE in gfc_get_array_span

2024-11-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117797 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||ice-on-valid-code Last rec

[Bug fortran/117798] Audit intrinsic subprograms with scalar INTENT(OUT) character strings

2024-11-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117798 anlauf at gcc dot gnu.org changed: What|Removed |Added Ever confirmed|0 |1 See Also|

[Bug fortran/117791] Segmentation fault when using -fcheck

2024-11-26 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117791 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org --

[Bug fortran/117791] Segmentation fault when using -fcheck

2024-11-26 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117791 --- Comment #6 from anlauf at gcc dot gnu.org --- Furthermore, replacing the line write(*,*) 'line 4:',array(:, sort_2(i(1:2)) ) by an expression with explicit parentheses around the array argument write(*,*) 'line 4:',(array(:, sort_2(i(1

[Bug fortran/117791] Segmentation fault when using -fcheck

2024-11-26 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117791 --- Comment #5 from anlauf at gcc dot gnu.org --- Further data points: - introducing a temporary array for the result, e.g. integer :: aux_array(4) and using it as aux_array = array(:, sort_2(i(1:2)) ) write(*,*) 'line 5:',aux_array ge

[Bug fortran/117791] Segmentation fault when using -fcheck

2024-11-26 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117791 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||wrong-code --- Comment #4 fr

[Bug fortran/117774] ICE passing imaginary part of complex array to assumed rank dummy

2024-11-25 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117774 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot gnu

[Bug fortran/117774] ICE passing imaginary part of complex array to assumed rank dummy

2024-11-25 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117774 --- Comment #4 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #3) > I am currently regtesting a third patch: Regtests OK (so far). Need to work on a more elaborate testcase now.

[Bug fortran/117774] ICE passing imaginary part of complex array to assumed rank dummy

2024-11-25 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117774 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org --

[Bug fortran/117774] ICE passing imaginary part of complex array to assumed rank dummy

2024-11-25 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117774 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||ice-on-valid-code

[Bug fortran/114021] ICE with allocation of scalar pointer entity where SOURCE=f() with f() returning a pointer

2024-11-25 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114021 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org --

  1   2   3   4   5   6   7   8   9   10   >