[Bug fortran/120302] New: ICE in gfc_trans_call

2025-05-15 Thread abensonca at gcc dot gnu.org via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: abensonca at gcc dot gnu.org Target Milestone: --- The following code (which must be in two separate files for the problem to occur) causes an ICE with the current trunk (and as far back as 11.2.0 which is the earliest version I have access to

[Bug fortran/119812] New: Bogus rank and type mismatch errors with procedure pointer

2025-04-14 Thread abensonca at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: abensonca at gcc dot gnu.org Target Milestone: --- The following code causes bogus errors when compiled with the latest trunk using the -Wall option: module bugMod type :: c

[Bug fortran/110626] [13/14/15 regression] Duplicated finalization in derived

2025-04-14 Thread abensonca at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110626 --- Comment #5 from Andrew Benson --- Thanks Paul. I'm always happy to be patient - I appreciate the huge amount of work you put in to gfortran (and the many different priorities within that work).

[Bug fortran/119802] New: Defined assignment not called for component of derived type

2025-04-14 Thread abensonca at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: abensonca at gcc dot gnu.org Target Milestone: --- A type-bound assignment of an allocatable component of a derived type is not called if the parent type does not use type-bound

[Bug fortran/109066] Segfault when using defined assignment

2024-10-22 Thread abensonca at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109066 --- Comment #5 from Andrew Benson --- With apologies for the long delay in replying - thanks for pointing out that I had the result of a constructor undefined. In this updated example I think that constructor results are now correctly defined, b

[Bug fortran/114535] [13/14 regression] ICE with elemental finalizer

2024-03-31 Thread abensonca at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114535 --- Comment #3 from Andrew Benson --- Thanks Paul. The workaround is very helpful and lets me continue making progress in the rest of my work for now. Thanks again!

[Bug fortran/114535] New: ICE with elemental finalizer

2024-03-30 Thread abensonca at gcc dot gnu.org via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: abensonca at gcc dot gnu.org Target Milestone: --- The following code (which must be in two files to trigger the error) causes an ICE using the latest gfortran. $ cat ice1.F90 module iv type, public :: vs contains final

[Bug fortran/110548] New: Segfault with optional argument and OpenMP tasks

2023-07-04 Thread abensonca at gcc dot gnu.org via Gcc-bugs
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: abensonca at gcc dot gnu.org Target Milestone: --- The following shows a segfault at run time resulting from use of an optional argument in a function with OpenMP tasks: module taskerMod type :: helper end

[Bug fortran/110547] New: Improper finalization calls with OpenMP tasks

2023-07-04 Thread abensonca at gcc dot gnu.org via Gcc-bugs
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: abensonca at gcc dot gnu.org Target Milestone: --- Here's an example code (highly simplified from the actual code I'm working on) that causes seemingly wrong behavior resulting in calling a destructor when it

[Bug fortran/109066] New: Segfault when using defined assignment

2023-03-08 Thread abensonca at gcc dot gnu.org via Gcc-bugs
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: abensonca at gcc dot gnu.org Target Milestone: --- The following code (compiled using current trunk), when run, causes a segfault, and valgrind complains about an invalid read. The code appears correct to me, and runs

[Bug fortran/105807] ICE / error when defining a class containing polymorphic components

2023-01-24 Thread abensonca at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105807 --- Comment #4 from Andrew Benson --- A possibly related case: module tm type :: st end type st type :: resourceManager class (*), pointer :: resource => null() integer , pointer :: counter => null() end type resourceMan

[Bug fortran/102845] New: Memory leak with nested OpenMP parallelism

2021-10-19 Thread abensonca at gcc dot gnu.org via Gcc-bugs
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: abensonca at gcc dot gnu.org Target Milestone: --- The following code seems to cause a memory leak when using nested OpenMP parallelism when compiled and run with gfortran-12. module nestedMod type :: n integer

[Bug fortran/93473] ICE on valid with long module + submodule names

2020-07-09 Thread abensonca at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93473 Andrew Benson changed: What|Removed |Added CC||abensonca at gcc dot gnu.org

[Bug fortran/96122] Segfault when using finalizer

2020-07-08 Thread abensonca at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96122 --- Comment #2 from Andrew Benson --- (In reply to Dominique d'Humieres from comment #1) > Confirmed. For me it segfaults from GCC7 up to GCC11. Interesting. This started occurring for me when I updated from GCC10.1 to 11. But, the code I posted

[Bug fortran/96122] New: Segfault when using finalizer

2020-07-08 Thread abensonca at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: abensonca at gcc dot gnu.org Target Milestone: --- The following code segfaults with gfortran 11.0.0: module a type vs character(len=1), dimension(:), allocatable :: ch contains final :: vsf end type vs type mtd

[Bug fortran/94446] New: Bogus "type mismatch" with TYPE(c_ptr) and sizeof()

2020-04-01 Thread abensonca at gcc dot gnu.org
iority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: abensonca at gcc dot gnu.org Target Milestone: --- The following causes a bogus "type mismatch" error with the current trunk (e899d4b71255b9ae096a7ecd31a61fc76f200019): $ cat file1.F90 module

[Bug fortran/93486] ICE on valid with nested submodules and long submodule names

2020-03-02 Thread abensonca at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93486 Andrew Benson changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/83113] Bogus "duplicate allocatable attribute" error for submodule character function

2020-02-10 Thread abensonca at gcc dot gnu.org
||abensonca at gcc dot gnu.org Resolution|--- |FIXED --- Comment #11 from Andrew Benson --- Fixed by https://gcc.gnu.org/g:7848054c68bad6e2aa40cb59f77cc99bd8448d52

[Bug fortran/89943] Submodule functions are not allowed to have C binding

2020-02-10 Thread abensonca at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89943 Bug 89943 depends on bug 83113, which changed state. Bug 83113 Summary: Bogus "duplicate allocatable attribute" error for submodule character function https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83113 What|Removed