public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/114834] New: nontstring attribute vs. references
@ 2024-04-24 11:20 jakub at gcc dot gnu.org
  2024-04-24 17:28 ` [Bug c++/114834] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-04-24 11:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114834
           Summary: nontstring attribute vs. references
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

We currently allow the nonstring attribute just on pointers and arrays of
char/signed char/unsigned char.
Shouldn't we allow it also on references to those as well?
What about arrays/pointers of std::byte (aka enumeral type with unsigned char
as underlying type)?

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

* [Bug c++/114834] nontstring attribute vs. references
  2024-04-24 11:20 [Bug c++/114834] New: nontstring attribute vs. references jakub at gcc dot gnu.org
@ 2024-04-24 17:28 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-24 17:28 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic, rejects-valid

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I would have assumed nonstring on std::byte would be a non-op since it is an
enum and the other code checks only for character types ...

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

end of thread, other threads:[~2024-04-24 17:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-24 11:20 [Bug c++/114834] New: nontstring attribute vs. references jakub at gcc dot gnu.org
2024-04-24 17:28 ` [Bug c++/114834] " 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).