: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: albandil at atlas dot cz
Target Milestone: ---
Wrong DTIO arguments with -fdefault-integer-8
It seems that gfortran miscompiles the following simple program when
`-fdefault-integer-8` compiler option is used
: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: albandil at atlas dot cz
Target Milestone: ---
When the following program is compiled with `-fcheck=bounds` using a recent
version of gfortran, it triggers a bogus (?) error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89039
--- Comment #2 from Jakub Benda ---
The quotation from the manual
> Any other integer value results in undefined behavior.
is very explicit. Also, I see that using
ifort -fpscomp logicals
will make ifort compatible with the rest of the wo
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: albandil at atlas dot cz
Target Milestone: ---
Related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22495
Logicals read from an unformatted stream file that are neither 0 nor 1 behave
like this:
print *, b
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84674
--- Comment #3 from Jakub Benda ---
Bisection points to revision 254427 from 5 November 2017, which adds this chunk
of code to "fortran/resolv.c" (function "resolve_fl_derived", lines
14081-14093):
/* Generate module vtables subject to their a
: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: albandil at atlas dot cz
Target Milestone: ---
Take the program code from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61284#c0 , change derived type
name "t
Component: libfortran
Assignee: unassigned at gcc dot gnu.org
Reporter: albandil at atlas dot cz
Target Milestone: ---
The following program fails with the error "Inquire statement identifies an
internal file" at the call to INQUIRE.
program TestRecycleInternalUni
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: albandil at atlas dot cz
Target Milestone: ---
INQUIRE(pos=...) seems to set 'pos' to zero when the unit number is 64bit
integer. This can be illustrated on the following exam