public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/110366] New: [C++26] P2641R4 Checking if a union alternative is active
@ 2023-06-22 17:05 redi at gcc dot gnu.org
  2023-06-22 17:15 ` [Bug libstdc++/110366] " mpolacek at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2023-06-22 17:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110366

            Bug ID: 110366
           Summary: [C++26] P2641R4 Checking if a union alternative is
                    active
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
            Blocks: 110339
  Target Milestone: ---

https://wg21.link/p2641r4

This needs a new built-in. We can't use __builtin_constant_p(&x) because the
address of a union member is a constant even if that isn't the active member.
We can't use __builtin_constant_p(x) because not all types usable in constexpr
contexts are boolean testable.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110339
[Bug 110339] Implement C++26 library features

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libstdc++/110366] [C++26] P2641R4 Checking if a union alternative is active
  2023-06-22 17:05 [Bug libstdc++/110366] New: [C++26] P2641R4 Checking if a union alternative is active redi at gcc dot gnu.org
@ 2023-06-22 17:15 ` mpolacek at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-06-22 17:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110366

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-06-22
     Ever confirmed|0                           |1
                 CC|                            |mpolacek at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-22 17:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-22 17:05 [Bug libstdc++/110366] New: [C++26] P2641R4 Checking if a union alternative is active redi at gcc dot gnu.org
2023-06-22 17:15 ` [Bug libstdc++/110366] " mpolacek 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).