public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/90253] no warning for cv-qualified selectors in _Generic
       [not found] <bug-90253-4@http.gcc.gnu.org/bugzilla/>
@ 2024-04-14 13:12 ` uecker at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: uecker at gcc dot gnu.org @ 2024-04-14 13:12 UTC (permalink / raw)
  To: gcc-bugs

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

uecker at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2024-04-14
                 CC|                            |uecker at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from uecker at gcc dot gnu.org ---

Confirmed.

Note that typeof preserves qualifiers in C23. Clang has an extension for
_Generic that allows the use of a typename, which allows testing for qualifiers
more easily:

https://godbolt.org/z/K5hGP9cYn

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-14 13:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-90253-4@http.gcc.gnu.org/bugzilla/>
2024-04-14 13:12 ` [Bug c/90253] no warning for cv-qualified selectors in _Generic uecker 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).