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/47659] -Wconversion[-extra] should emit warning for constant expressions


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47659

Harald Anlauf <anlauf at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gmx dot de

--- Comment #9 from Harald Anlauf <anlauf at gmx dot de> 2012-12-23 21:54:54 UTC ---
Some more cases where a warning is desired
or the current behavior is inconsistent:

  real(8) :: a = 0.1_8
  real(4) :: b = 0.2
  print *, 0.1_8 ** 0.2            ! No Warning
  print *, exp (0.2 * log (0.1_8)) ! No Warning
  print *,     a ** b              ! No Warning
  print *, exp (b   * log (a))     ! Warning
end


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