public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20764] New: value won't fit in type
@ 2005-04-05 13:50 dcb314 at hotmail dot com
2005-04-05 14:31 ` [Bug c/20764] " pinskia at gcc dot gnu dot org
2005-07-05 2:02 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2005-04-05 13:50 UTC (permalink / raw)
To: gcc-bugs
Given the following C++ source code
float fred = 1.0e50;
The float data type maximum value is around 1.0e38 on my machine, so fred
will not fit.
gcc 3.4 snapshot for 20050401 fails to detect this.
dcb@linux:~/C++/Alphasrc> ~/gnu/20050401/results/bin/g++ -g -c -O2 -Wall floatVal.cc
dcb@linux:~/C++/Alphasrc> ~/gnu/20050401/results/bin/g++ -g -c -O2 -Wall -ansi
-pedantic floatVal.cc
Here is Intel icc 8.1 doing what I want
dcb@linux:~/C++/Alphasrc> icc -c floatVal.cc
floatVal.cc(2): warning #264: floating-point value does not fit in required
floating-point type
float fred = 1.0e50;
^
--
Summary: value won't fit in type
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: linux-pc-i686
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20764
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/20764] value won't fit in type
2005-04-05 13:50 [Bug c++/20764] New: value won't fit in type dcb314 at hotmail dot com
@ 2005-04-05 14:31 ` pinskia at gcc dot gnu dot org
2005-07-05 2:02 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-05 14:31 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Component|c++ |c
Keywords| |diagnostic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20764
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/20764] value won't fit in type
2005-04-05 13:50 [Bug c++/20764] New: value won't fit in type dcb314 at hotmail dot com
2005-04-05 14:31 ` [Bug c/20764] " pinskia at gcc dot gnu dot org
@ 2005-07-05 2:02 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-05 2:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-05 02:02 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-07-05 02:02:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20764
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/20764] value won't fit in type
[not found] <bug-20764-9596@http.gcc.gnu.org/bugzilla/>
@ 2007-01-22 17:05 ` manu at gcc dot gnu dot org
0 siblings, 0 replies; 4+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-01-22 17:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from manu at gcc dot gnu dot org 2007-01-22 17:05 -------
PR 23572 has a better description of the problem and the current status.
*** This bug has been marked as a duplicate of 23572 ***
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20764
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-01-22 17:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-05 13:50 [Bug c++/20764] New: value won't fit in type dcb314 at hotmail dot com
2005-04-05 14:31 ` [Bug c/20764] " pinskia at gcc dot gnu dot org
2005-07-05 2:02 ` pinskia at gcc dot gnu dot org
[not found] <bug-20764-9596@http.gcc.gnu.org/bugzilla/>
2007-01-22 17:05 ` manu 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).