public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94058] defaulted three way comparison operator defined as deleted when a member is a small bitfield of long type.
[not found] <bug-94058-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-12 20:42 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; only message in thread
From: pinskia at gcc dot gnu.org @ 2021-08-12 20:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94058
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |84516
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
What is interesting is clang also reject this for the same reason.
Also this is related to PR 84516.
Then again this might be invalid based on [conv.prom] (I don't know if this
wording has changed in recent C++ versions though):
> A prvalue for an integral bit-field (10.3.10) can be converted to a prvalue of type int if int can represent all the values of the bit-field; otherwise, it can be converted to unsigned int if unsigned int can represent all the values of the bit-field. If the bit-field is larger yet, no integral promotion applies to it.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84516
[Bug 84516] bitfield temporaries > 32-bits have wrong type
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-12 20:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-94058-4@http.gcc.gnu.org/bugzilla/>
2021-08-12 20:42 ` [Bug c++/94058] defaulted three way comparison operator defined as deleted when a member is a small bitfield of long type pinskia 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).