public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/116193] New: enhancement: type attribute that causes overflow for unsigned integer types to trap
@ 2024-08-02  9:44 uecker at gcc dot gnu.org
  2024-08-02  9:48 ` [Bug c/116193] " uecker at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: uecker at gcc dot gnu.org @ 2024-08-02  9:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 116193
           Summary: enhancement: type attribute that causes overflow for
                    unsigned integer types to trap
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: uecker at gcc dot gnu.org
  Target Milestone: ---

It would be nice to have an attribute that one can add to an unsigned integer
type that makes overflow trap.

typedef unsigned int __attribute__ ((__overflow__)) positive_int;

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

end of thread, other threads:[~2024-08-02 16:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-02  9:44 [Bug c/116193] New: enhancement: type attribute that causes overflow for unsigned integer types to trap uecker at gcc dot gnu.org
2024-08-02  9:48 ` [Bug c/116193] " uecker at gcc dot gnu.org
2024-08-02 10:00 ` pinskia at gcc dot gnu.org
2024-08-02 10:02 ` jakub at gcc dot gnu.org
2024-08-02 10:56 ` uecker at gcc dot gnu.org
2024-08-02 11:19 ` rguenth at gcc dot gnu.org
2024-08-02 16:06 ` muecker at gwdg dot de

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).