: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: jfeng33 at hotmail dot com
Target Milestone: ---
Compiling the below code failed and gave the following error in which f was
declared to be pure:
22 | x = int(f(real(x)) * 0.1)
| 1
Error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89651
--- Comment #7 from Jim Feng ---
(In reply to Jakub Jelinek from comment #6)
> (In reply to Jim Feng from comment #5)
> > (In reply to Jakub Jelinek from comment #4)
> > > On the other side, the testcase is invalid, because you are summing
> > >
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89651
--- Comment #5 from Jim Feng ---
(In reply to Jakub Jelinek from comment #4)
> On the other side, the testcase is invalid, because you are summing
> uninitialized data. It is like if you did:
> program pr89651
> integer :: n
> real, allocata
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: jfeng33 at hotmail dot com
Target Milestone: ---
A private array variable generates an uninitialized warning when compiled with
-O, -O1, -O2, -O3. Without optimization flag, no error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86472
--- Comment #6 from Jim Feng ---
't' is a local variable of myfunc1. If I change to following:
Module M1
implicit none
type :: mytype
contains
procedure :: myfu
: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: jfeng33 at hotmail dot com
Target Milestone: ---
Module M1
implicit none
type :: mytype
contains
procedure :: myfunc1
end type
interface
module subroutine myfunc1(self, a