public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31637] New: warn about implicit conversion causing loss of precision
@ 2007-04-19 19:28 vivekrao4 at yahoo dot com
2007-04-19 20:45 ` [Bug fortran/31637] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: vivekrao4 at yahoo dot com @ 2007-04-19 19:28 UTC (permalink / raw)
To: gcc-bugs
For the program
program main
implicit none
real :: xx
double precision :: yy
call random_seed()
call random_number(yy)
xx = yy ! assign double to single
print*,"yy =",yy
print*,"xx =",xx
end program main
g95 -Wall -Wextra says
In file xreal_dp.f90:7
xx = yy
1
Warning (140): Implicit conversion at (1) may cause
precision loss
I request a similar warning from gfortran. None is currently given when
compiling with
gfortran -Wall -pedantic -std=f2003 xreal_dp.f90 .
Vivek Rao
--
Summary: warn about implicit conversion causing loss of precision
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vivekrao4 at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31637
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-19 20:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-19 19:28 [Bug fortran/31637] New: warn about implicit conversion causing loss of precision vivekrao4 at yahoo dot com
2007-04-19 20:45 ` [Bug fortran/31637] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).