This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47659] -Wconversion[-extra] should emit warning for constant expressions
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 23 Dec 2012 21:54:54 +0000
- Subject: [Bug fortran/47659] -Wconversion[-extra] should emit warning for constant expressions
- Auto-submitted: auto-generated
- References: <bug-47659-4@http.gcc.gnu.org/bugzilla/>
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