public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/23572] New: No warning for assigning a value to a 'float' variable that overflows with option -Wextra
@ 2005-08-26  7:56 qiyaoltc at cn dot ibm dot com
  2005-08-26 12:53 ` [Bug other/23572] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: qiyaoltc at cn dot ibm dot com @ 2005-08-26  7:56 UTC (permalink / raw)
  To: gcc-bugs

I tried compilers 4.1.0 through mainline and none of them warn about nitializing
a float variable with a value that will overflow, underflow, or lose precision
for -W or -Wextra.

But in GCC info, It is said like this:
in GCC info(GCC 3.3.4).
 `-Wextra'
      (This option used to be called `-W'.  The older name is still
      supported, but the newer name is more descriptive.)  Print extra
      warning messages for these events:
 ........
      * Any of several floating-point events that often indicate
      errors, such as overflow, underflow, loss of precision, etc.


Is this a bug either in GCC or a bug in documentation?

-- 
           Summary: No warning for assigning a value to a 'float' variable
                    that overflows with option -Wextra
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: qiyaoltc at cn dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org,janis187 at us dot ibm
                    dot com
 GCC build triplet: ppc64-redhat-linux
  GCC host triplet: ppc64-redhat-linux
GCC target triplet: ppc64-redhat-linux


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


^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <bug-23572-11241@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-04-06 18:58 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-26  7:56 [Bug other/23572] New: No warning for assigning a value to a 'float' variable that overflows with option -Wextra qiyaoltc at cn dot ibm dot com
2005-08-26 12:53 ` [Bug other/23572] " pinskia at gcc dot gnu dot org
2005-08-29  3:10 ` qiyaoltc at cn dot ibm dot com
2005-08-29  3:35 ` pinskia at gcc dot gnu dot org
2005-08-29  5:18 ` qiyaoltc at cn dot ibm dot com
     [not found] <bug-23572-11241@http.gcc.gnu.org/bugzilla/>
2006-11-25 15:24 ` manu at gcc dot gnu dot org
2007-01-09 15:09 ` manu at gcc dot gnu dot org
2007-01-21 16:01 ` patchapp at dberlin dot org
2007-01-22 17:05 ` manu at gcc dot gnu dot org
2007-03-14 18:15 ` patchapp at dberlin dot org
2007-03-21 21:05 ` patchapp at dberlin dot org
2007-03-22 23:04 ` manu at gcc dot gnu dot org
2007-03-22 23:12 ` manu at gcc dot gnu dot org
2007-04-05 23:58 ` pinskia at gcc dot gnu dot org
2007-04-06 11:25 ` manu at gcc dot gnu dot org
2007-04-06 18:58 ` danglin 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).