public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "anlauf at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/47659] -Wconversion[-extra] should emit warning for constant expressions
Date: Sun, 23 Dec 2012 21:55:00 -0000	[thread overview]
Message-ID: <bug-47659-4-aH4YICvUG2@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <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


  parent reply	other threads:[~2012-12-23 21:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-09 10:41 [Bug fortran/47659] New: " thenlich at users dot sourceforge.net
2011-02-09 16:21 ` [Bug fortran/47659] " kargl at gcc dot gnu.org
2011-07-30 23:08 ` tkoenig at gcc dot gnu.org
2011-08-07 19:31 ` tkoenig at gcc dot gnu.org
2011-08-07 21:21 ` tkoenig at gcc dot gnu.org
2011-08-08  6:08 ` thenlich at users dot sourceforge.net
2011-08-08 14:51 ` sgk at troutmask dot apl.washington.edu
2011-08-21 16:41 ` tkoenig at gcc dot gnu.org
2011-09-05  7:56 ` thenlich at users dot sourceforge.net
2012-05-04 16:12 ` david.folkner at gmail dot com
2012-12-23 21:55 ` anlauf at gmx dot de [this message]
2015-06-06 16:20 ` tkoenig at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-47659-4-aH4YICvUG2@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).