public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/114740] New: i686-linux-gnu-g++ does not interpret floating point literals as double
@ 2024-04-16 12:16 gnu.ojxq8 at dralias dot com
2024-04-16 12:34 ` [Bug c++/114740] " redi at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: gnu.ojxq8 at dralias dot com @ 2024-04-16 12:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114740
Bug ID: 114740
Summary: i686-linux-gnu-g++ does not interpret floating point
literals as double
Product: gcc
Version: 13.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gnu.ojxq8 at dralias dot com
Target Milestone: ---
Starting with i686-linux-gnu-g++-13, including 14, a floating point literal
appears to be no longer interpreted as double.
i686-linux-gnu-g++-12, and earlier, as well as clang, work fine.
Steps to reproduce:
$ echo 'int main() { return double(1e-8) == 1e-8; }' > a.cpp
$ i686-linux-gnu-g++-13 -std=c++03 test.cpp && ./a.out ; echo $?
0
$ i686-linux-gnu-g++-12 -std=c++03 test.cpp && ./a.out ; echo $?
1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/114740] i686-linux-gnu-g++ does not interpret floating point literals as double
2024-04-16 12:16 [Bug c++/114740] New: i686-linux-gnu-g++ does not interpret floating point literals as double gnu.ojxq8 at dralias dot com
@ 2024-04-16 12:34 ` redi at gcc dot gnu.org
2024-04-16 12:48 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2024-04-16 12:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114740
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
See the first item at https://gcc.gnu.org/gcc-13/changes.html#cxx
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/114740] i686-linux-gnu-g++ does not interpret floating point literals as double
2024-04-16 12:16 [Bug c++/114740] New: i686-linux-gnu-g++ does not interpret floating point literals as double gnu.ojxq8 at dralias dot com
2024-04-16 12:34 ` [Bug c++/114740] " redi at gcc dot gnu.org
@ 2024-04-16 12:48 ` pinskia at gcc dot gnu.org
2024-04-16 14:17 ` vincent-gcc at vinc17 dot net
2024-04-16 14:27 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-16 12:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114740
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup.
*** This bug has been marked as a duplicate of bug 92875 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/114740] i686-linux-gnu-g++ does not interpret floating point literals as double
2024-04-16 12:16 [Bug c++/114740] New: i686-linux-gnu-g++ does not interpret floating point literals as double gnu.ojxq8 at dralias dot com
2024-04-16 12:34 ` [Bug c++/114740] " redi at gcc dot gnu.org
2024-04-16 12:48 ` pinskia at gcc dot gnu.org
@ 2024-04-16 14:17 ` vincent-gcc at vinc17 dot net
2024-04-16 14:27 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: vincent-gcc at vinc17 dot net @ 2024-04-16 14:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114740
Vincent Lefèvre <vincent-gcc at vinc17 dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vincent-gcc at vinc17 dot net
--- Comment #3 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> ---
(In reply to Jonathan Wakely from comment #1)
> See the first item at https://gcc.gnu.org/gcc-13/changes.html#cxx
The mention of -fexcess-precision in this item is unclear, because it does not
affect constants (or this is a real bug). I suspect that it means "evaluation
method" (FLT_EVAL_METHOD).
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/114740] i686-linux-gnu-g++ does not interpret floating point literals as double
2024-04-16 12:16 [Bug c++/114740] New: i686-linux-gnu-g++ does not interpret floating point literals as double gnu.ojxq8 at dralias dot com
` (2 preceding siblings ...)
2024-04-16 14:17 ` vincent-gcc at vinc17 dot net
@ 2024-04-16 14:27 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-04-16 14:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114740
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
It certainly does affect constants.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-04-16 14:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-16 12:16 [Bug c++/114740] New: i686-linux-gnu-g++ does not interpret floating point literals as double gnu.ojxq8 at dralias dot com
2024-04-16 12:34 ` [Bug c++/114740] " redi at gcc dot gnu.org
2024-04-16 12:48 ` pinskia at gcc dot gnu.org
2024-04-16 14:17 ` vincent-gcc at vinc17 dot net
2024-04-16 14:27 ` jakub at gcc dot gnu.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).