public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug sanitizer/58413] New: ubsan constant folding
@ 2013-09-13  9:46 jan.smets@alcatel-lucent.com
  2013-09-13  9:55 ` [Bug sanitizer/58413] " mpolacek at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jan.smets@alcatel-lucent.com @ 2013-09-13  9:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58413

            Bug ID: 58413
           Summary: ubsan constant folding
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jan.smets@alcatel-lucent.com
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org

variable-sized object may not be initialized
  unsigned short x[128 >> 5] = {};

initializer element is not constant
  static int x = ((int)( 0x00000000 | ((31 & ((1 << (4)) - 1)) << (((15) + 6) +
4)) | ((0) << ((15) + 6)) | ((0) << (15)) ) );
(yes, auch)

unexpected size of type 'long long unsigned int:40'
  uint64_t start_of_buffer = ((res.ptr.s.addr >> 7) - res.ptr.s.back) << 7; 
   .addr and .back are bitfield members of struct s. ptr is a pointer to an
union.


case label does not reduce to an integer constant

switch(int)
...
   case (1<<1):
    ..


They all seem related.

Thanks!


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

end of thread, other threads:[~2013-09-25  9:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-13  9:46 [Bug sanitizer/58413] New: ubsan constant folding jan.smets@alcatel-lucent.com
2013-09-13  9:55 ` [Bug sanitizer/58413] " mpolacek at gcc dot gnu.org
2013-09-13 18:16 ` mpolacek at gcc dot gnu.org
2013-09-14  8:30 ` mpolacek at gcc dot gnu.org
2013-09-16 16:00 ` mpolacek at gcc dot gnu.org
2013-09-25  8:59 ` mpolacek at gcc dot gnu.org
2013-09-25  9:00 ` 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).