[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2025-02-26 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 --- Comment #13 from anlauf at gcc dot gnu.org --- (In reply to kargls from comment #11) > If we're discussing derived-type IO, then it is clear from > Fortran 2023, 12.6.4.8.2, (see p. 255) that the unit number > has the default integer kind wit

[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2025-02-25 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 --- Comment #12 from Jerry DeLisle --- "The keyword INTEGER with no kind-selector specifies type integer with default kind; the kind type parameter value is equal to KIND (0). The decimal exponent range of default integer shall be at least 5." -

[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2025-02-25 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 --- Comment #11 from kargls at comcast dot net --- On 2/25/25 12:43, anlauf at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 > > --- Comment #10 from anlauf at gcc dot gnu.org --- > (In reply to Jerry DeLisle from

[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2025-02-25 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 --- Comment #10 from anlauf at gcc dot gnu.org --- (In reply to Jerry DeLisle from comment #9) > We can have only one default integer otherwise its not a default. Our > default integer is KIND=4 Forgive me for being stupid, but leaving aside the

[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2025-02-24 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 --- Comment #9 from Jerry DeLisle --- We can have only one default integer otherwise its not a default. Our default integer is KIND=4 The RANGE of KIND=4 integer is 9, so we exceed the requirement for at least a decimal range of 5. RANGE is def

[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2025-02-24 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 --- Comment #8 from anlauf at gcc dot gnu.org --- (In reply to Jerry DeLisle from comment #7) > From the 2023 standard I find: > > "The keyword INTEGER with no kind-selector specifies type integer with > default kind; the kind type parameter val

[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2025-02-24 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 --- Comment #7 from Jerry DeLisle --- >From the 2023 standard I find: "The keyword INTEGER with no kind-selector specifies type integer with default kind; the kind type parameter value is equal to KIND (0). The decimal exponent range of default

[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2025-02-23 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 --- Comment #6 from Jerry DeLisle --- The check is being done in interface.cc. The kind is being checked against default_integer_kind. case(2):/* UNIT */ type = BT_INTEGER; kind = gfc_default

[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2025-02-23 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 Jerry DeLisle changed: What|Removed |Added Status|WAITING |NEW --- Comment #5 from Jerry DeLisle

[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2025-02-23 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 --- Comment #4 from anlauf at gcc dot gnu.org --- (In reply to Jerry DeLisle from comment #3) > I just circled back on this one. If I modify the test case to explicitly > define the interface to use integer(8) like this: [...] > SUBROUTINE my_wri

[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2025-02-22 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 Jerry DeLisle changed: What|Removed |Added Status|NEW |WAITING Severity|normal

[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2024-03-05 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 Jerry DeLisle changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2023-02-06 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org ---