This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/67219] [6 Regression] Incorrect conversion warning


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67219

Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Joost.VandeVondele at mat dot ethz
                   |                            |.ch

--- Comment #3 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
It also depends on which value is used for 'huge_4', for example no warning
like so:

function foo(bar)
   integer(8)             :: foo
   integer(4), intent(in) :: bar
   ! integer(4), parameter  :: huge_4 = huge(0_4)
   integer(4), parameter  :: huge_4 = 2**30
   foo = (huge_4 - int(bar,kind=8))
end function

there is also no valgrind warning for f951 compiling the testcase.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]