[Bug fortran/119078] Abstract bind(c) interface should not be a global entity

2025-03-01 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119078 Thomas Koenig changed: What|Removed |Added Keywords||diagnostic, needs-stdcheck --- Comment

[Bug fortran/119074] Mismatched arguments for external dummy argument not caught

2025-03-02 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119074 Thomas Koenig changed: What|Removed |Added Keywords||needs-stdcheck --- Comment #1 from Thom

[Bug fortran/119074] Mismatched arguments for external dummy argument not caught

2025-03-02 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |tkoenig at gcc dot gnu.org Last reconfirmed||2025-03-02 Ever confirmed|0 |1

[Bug fortran/119074] Mismatched arguments for external dummy argument not caught

2025-03-02 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119074 --- Comment #2 from Thomas Koenig --- (In reply to Thomas Koenig from comment #1) > Hmm... an interesting question: > > Does > > subroutine foo(f,n) > external f > if (n .eq. 1) call f(1) > if (n .eq. 2) call f(1,2) > end > > comply? A

[Bug fortran/119157] ice in gfc_enforce_clean_symbol_state, at fortran/symbol.cc:4459

2025-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119157 --- Comment #5 from Thomas Koenig --- Reduced test case: MODULE lmdif_module CONTAINS SUBROUTINE fdjac2 (fcn, m, n, x, fvec, fjac, ldfjac, iflag, & epsfcn, wa) END SUBROUTINE fdjac2 SUBROUTINE lmdif (fcn, m, n,

[Bug fortran/119049] Procedures are mishandled in -fc-prototypes-external

2025-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119049 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/119074] Mismatched arguments for external dummy argument not caught

2025-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119074 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/119157] [15 Regression] ice in gfc_enforce_clean_symbol_state, at fortran/symbol.cc:4459

2025-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119157 Thomas Koenig changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug fortran/119136] Printing result of function that prints itself hangs

2025-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
|enhancement CC||tkoenig at gcc dot gnu.org

[Bug fortran/119078] Abstract bind(c) interface should not be a global entity

2025-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119078 Thomas Koenig changed: What|Removed |Added Last reconfirmed||2025-03-08 Ever confirmed|0

[Bug fortran/119078] Abstract bind(c) interface should not be a global entity

2025-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119078 --- Comment #3 from Thomas Koenig --- And a dummy argument should not be global, either.

[Bug fortran/119157] [15 Regression] ice in gfc_enforce_clean_symbol_state, at fortran/symbol.cc:4459

2025-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119157 Thomas Koenig changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |tkoenig at gcc dot gnu.org

[Bug fortran/119157] [15 Regression] ice in gfc_enforce_clean_symbol_state, at fortran/symbol.cc:4459

2025-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119157 Thomas Koenig changed: What|Removed |Added Summary|ice in |[15 Regression] ice in

[Bug fortran/119078] Abstract bind(c) interface should not be a global entity

2025-03-11 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119078 Thomas Koenig changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug fortran/119049] New: Procedures are mishandled in -fc-prototypes-external

2025-02-27 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Original test case by Jürgen Bausa. The following cases are mishandled with -fc-prototypes-external: SUBROUTINE FCN (JAC) EXTERNAL JAC INTEGER

[Bug fortran/119049] Procedures are mishandled in -fc-prototypes-external

2025-02-27 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
dot gnu.org |tkoenig at gcc dot gnu.org Last reconfirmed||2025-02-27 Status|UNCONFIRMED |ASSIGNED

[Bug fortran/119074] New: Mismatched arguments for external dummy argument not caught

2025-03-01 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Looking at PR119049, it surprised me that we do not have a formal argument list check for subroutine foo (f) external :: f

[Bug fortran/118845] [15 regression] ICE when building lapack-3.12.0 on x86 (compare_parameter, at fortran/interface.cc:2521)

2025-02-13 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118845 --- Comment #9 from Thomas Koenig --- Should be fixed by https://gcc.gnu.org/g:cdb4d27a4c2786cf1b1b0eb1872eac6a5f931578 (I'll wait for closing this until it is confirmed that Lapack builds again).

[Bug fortran/118862] UBSAN: shift exponent too large since r15-7345-gc2a0ee58865c5a

2025-02-13 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |tkoenig at gcc dot gnu.org --- Comment #3 from Thomas Koenig --- (In reply to Andrew Pinski from comment #1) > Most likely this code should be using wide_int instead of HOST_WIDE_INT here. > To support 128 bit integers. > > I suspect this could cause wr

[Bug fortran/118845] [15 regression] ICE when building lapack-3.12.0 on x86 (compare_parameter, at fortran/interface.cc:2521)

2025-02-12 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118845 --- Comment #8 from Thomas Koenig --- This works: diff --git a/gcc/fortran/interface.cc b/gcc/fortran/interface.cc index fdde84db80d..eee5520ad93 100644 --- a/gcc/fortran/interface.cc +++ b/gcc/fortran/interface.cc @@ -5822,7 +5822,14 @@ gfc_ge

[Bug fortran/118862] UBSAN: shift exponent too large since r15-7345-gc2a0ee58865c5a

2025-02-16 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118862 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/45057] Unneeded temporary / missed bounds violation for PACK

2025-02-17 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45057 Thomas Koenig changed: What|Removed |Added Last reconfirmed|2010-08-06 21:21:08 |2025-2-17 --- Comment #1 from Thomas Koe

[Bug fortran/113997] Bogus 'Warning: Interface mismatch in global procedure' with C binding

2025-02-17 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113997 Thomas Koenig changed: What|Removed |Added Keywords||needs-stdcheck --- Comment #7 from Thom

[Bug fortran/113997] Bogus 'Warning: Interface mismatch in global procedure' with C binding

2025-02-17 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113997 Thomas Koenig changed: What|Removed |Added Keywords|needs-stdcheck | --- Comment #8 from Thomas Koenig ---

[Bug fortran/47486] gfortran -M exits with fatal error when -o option is used

2025-02-17 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
||tkoenig at gcc dot gnu.org --- Comment #9 from Thomas Koenig --- Still current...

[Bug fortran/113997] Bogus 'Warning: Interface mismatch in global procedure' with C binding

2025-02-17 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113997 Thomas Koenig changed: What|Removed |Added Keywords||needs-stdcheck --- Comment #9 from Thom

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2025-02-16 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 118862, which changed state. Bug 118862 Summary: UBSAN: shift exponent too large since r15-7345-gc2a0ee58865c5a https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118862 What|Removed |Added -

[Bug fortran/118862] UBSAN: shift exponent too large since r15-7345-gc2a0ee58865c5a

2025-02-14 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118862 --- Comment #5 from Thomas Koenig --- (In reply to Jakub Jelinek from comment #4) > Completely untested. This regresses in unsigned_43.f90, on the test case unsigned(kind=1) :: x, r1, r2, r3, r4 unsigned(kind=1) :: n x = 0u_1

[Bug fortran/88052] Format contravening constraint C1002 permitted

2025-02-16 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88052 --- Comment #15 from Thomas Koenig --- (In reply to john.harper from comment #14) > The comma between A and F is still required by F2023 constraint C1302, > and gfortran 14.2.0 still compiles and runs the test program omitting it > even if the -s

[Bug fortran/118884] [15 regression] lapack fails to compile (Error: Type mismatch at (1) passing global function ‘cslect’ declared at (2) (UNKNOWN/LOGICAL(4)))

2025-02-15 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118884 --- Comment #7 from Thomas Koenig --- (In reply to Jerry DeLisle from comment #6) > I forgot to mention this is a good hint for Thomas regarding how to tweak > the previous fix. Yes, if the argument is of unknown type, the test can be skipped,

[Bug fortran/118884] [15 regression] lapack fails to compile (Error: Type mismatch at (1) passing global function ‘cslect’ declared at (2) (UNKNOWN/LOGICAL(4)))

2025-02-15 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
||2025-02-15 Assignee|unassigned at gcc dot gnu.org |tkoenig at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED

[Bug fortran/118845] [15 regression] ICE when building lapack-3.12.0 on x86 (compare_parameter, at fortran/interface.cc:2521)

2025-02-15 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118845 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/118159] link from Fortran documentation, coco is now an online casino

2025-02-15 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118159 Thomas Koenig changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug fortran/118932] Testcase gfortran.dg/binding_label_tests_34.f90 needs standard checking

2025-02-19 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118932 Thomas Koenig changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org --- Comment

[Bug libfortran/118935] Segmentation fault in 'libgomp.fortran/rwlock_1.f90' when compiling libgfortran with '-O0'

2025-02-20 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118935 --- Comment #10 from Thomas Koenig --- What does the OpenMP standard say about I/O in partallel exexution?

[Bug fortran/118932] Testcase gfortran.dg/binding_label_tests_34.f90 needs standard checking

2025-02-20 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118932 --- Comment #4 from Thomas Koenig --- Hm, maybe I am misunderstanding the standard here, or it says something that was not intentional... We accept program memain interface subroutine lower () bind(c,name="foo") end subroutine lowe

[Bug fortran/115781] Error with passing array of derived type

2025-02-23 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115781 --- Comment #8 from Thomas Koenig --- ... or rather, the calculation needs to be done with the contents of x->_data and not with x directly.

[Bug fortran/102368] Failure to compile program using the C_SIZEOF function in ISO_C_BINDING

2025-02-23 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102368 Thomas Koenig changed: What|Removed |Added Status|WAITING |NEW Keywords|needs-stdcheck

[Bug fortran/102368] Failure to compile program using the C_SIZEOF function in ISO_C_BINDING

2025-02-23 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102368 --- Comment #8 from Thomas Koenig --- (In reply to anlauf from comment #7) > (In reply to Thomas Koenig from comment #6) > > I think the code is valid. > > > > A named scalar Fortran variable is interoperable if and only if its type and > > typ

[Bug fortran/118932] Testcase gfortran.dg/binding_label_tests_34.f90 needs standard checking

2025-02-23 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118932 --- Comment #5 from Thomas Koenig --- The discussion on the J3 mailing list seems to indicate that this is actually invalid, but nobody else catches it (and the restriction is also silly). Maybe we should just downgrade the error to a warning.

[Bug fortran/109322] -fc-prototypes does not correctly translate INTEGER(KIND=C_SIZE_T), and other sizes

2025-02-23 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109322 Thomas Koenig changed: What|Removed |Added Status|WAITING |NEW --- Comment #13 from Thomas Koenig

[Bug fortran/115781] Error with passing array of derived type

2025-02-23 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115781 --- Comment #7 from Thomas Koenig --- (In reply to Thomas Koenig from comment #6) After looking at the tree dump and some debugging, it is clear that the error happens on the callee side. If the callee has a type as dummy argument, it has

[Bug fortran/102368] Failure to compile program using the C_SIZEOF function in ISO_C_BINDING

2025-02-23 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102368 --- Comment #13 from Thomas Koenig --- (In reply to anlauf from comment #12) > So what now? > > Ask J3 for an opinion? Why not?

[Bug fortran/118955] Fortran uses vector math functions without -ffast-math

2025-02-20 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118955 --- Comment #1 from Thomas Koenig --- > Since vector > functions can have much larger ULP errors, using them by default with -O2 > seems excessive. "can have"? Is this indeed the case? I would consider this to be a bug in the implementation of

[Bug libfortran/118935] Segmentation fault in 'libgomp.fortran/rwlock_1.f90' when compiling libgfortran with '-O0'

2025-02-20 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118935 Thomas Koenig changed: What|Removed |Added CC||burnus at gcc dot gnu.org Ever conf

[Bug fortran/115983] ICE on valid code in gfc_is_nodesc_array, at fortran/trans-types.cc:

2025-03-29 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115983 Thomas Koenig changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org --- Comment

[Bug fortran/119928] [15/16 Regression] Bogus "Interface mismatch" in gfortran.dg/proc_ptr_52.f90 with -Wall

2025-05-10 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119928 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/120163] [15/16 Regression] Can not import module containig call to pure routine via abstract interface

2025-05-10 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120163 Thomas Koenig changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |tkoenig at gcc dot gnu.org

[Bug fortran/120220] New: Lack of testing for -fc-prototypes and -fc-prototypes-external

2025-05-11 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- There is currently no way of testing the output of -fc-prototypes and -fc-prototypes-external, which makes it much easier for

[Bug fortran/120163] [15/16 Regression] Can not import module containig call to pure routine via abstract interface

2025-05-10 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120163 --- Comment #2 from Thomas Koenig --- Patch at https://gcc.gnu.org/pipermail/fortran/2025-May/062123.html

[Bug fortran/120107] [15/16 regression] -fc-prototypes for ISO_FORTRAN_ENV generates duplicate typedefs

2025-05-11 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120107 Thomas Koenig changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |tkoenig at gcc dot gnu.org

[Bug fortran/120139] [15/16 Regression] -fc-prototypes emits incorrect type for arrays with variable extents

2025-05-11 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120139 Thomas Koenig changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |tkoenig at gcc dot gnu.org

[Bug fortran/120163] [15 Regression] Can not import module containig call to pure routine via abstract interface

2025-05-13 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120163 Thomas Koenig changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug fortran/120107] [15 regression] -fc-prototypes for ISO_FORTRAN_ENV generates duplicate typedefs

2025-05-15 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120107 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/120139] [15 Regression] -fc-prototypes emits incorrect type for arrays with variable extents

2025-05-15 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120139 Thomas Koenig changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug fortran/120099] [16 regression] gfortran.dg/specifics_1.f90 FAILs since r16-372-g064cac730f88dc

2025-05-16 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120099 Thomas Koenig changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org --- Comment

<    33   34   35   36   37   38