public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/92856] incorrectly accepts invalid C++11 braced initialisation of double from long double
[not found] <bug-92856-4@http.gcc.gnu.org/bugzilla/>
@ 2020-04-10 14:56 ` dangelog at gmail dot com
2020-04-14 10:14 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: dangelog at gmail dot com @ 2020-04-10 14:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92856
Giuseppe D'Angelo <dangelog at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dangelog at gmail dot com
--- Comment #5 from Giuseppe D'Angelo <dangelog at gmail dot com> ---
Hi,
This specific bug needs to be reopened: GCC incorrectly accepts long double to
double in list initializations, and generates no warnings, on architectures
where long double is the same as double.
Testcases:
On ARM: https://godbolt.org/z/SRg3fr
On X86-64 also passing -mlong-double-64: https://godbolt.org/z/GnRkHC
SFINAE contexts are affected as well: https://godbolt.org/z/icMA3k
Clang, MSVC reject the code.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/92856] incorrectly accepts invalid C++11 braced initialisation of double from long double
[not found] <bug-92856-4@http.gcc.gnu.org/bugzilla/>
2020-04-10 14:56 ` [Bug c++/92856] incorrectly accepts invalid C++11 braced initialisation of double from long double dangelog at gmail dot com
@ 2020-04-14 10:14 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2020-04-14 10:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92856
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
That's a different bug, so thanks for filing it separately (PR 94590).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-14 10:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-92856-4@http.gcc.gnu.org/bugzilla/>
2020-04-10 14:56 ` [Bug c++/92856] incorrectly accepts invalid C++11 braced initialisation of double from long double dangelog at gmail dot com
2020-04-14 10:14 ` redi 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).