public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/67279] New: -fsanitize=undefined spurious error: initializer element is not constant
@ 2015-08-19 17:06 zeccav at gmail dot com
  2015-08-19 17:09 ` [Bug c/67279] " mpolacek at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: zeccav at gmail dot com @ 2015-08-19 17:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67279
           Summary: -fsanitize=undefined spurious error: initializer
                    element is not constant
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---

/* gcc -fsanitize=undefined issues spurious error message */
/* OK without sanitizer */
/* Target: x86_64-unknown-linux-gnu */
void test(void)
{
        int dec_good = 1 << 31; /* good */
 static int dec_BAD  = 1 << 31; /* error: initializer element is not constant*/
}


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

end of thread, other threads:[~2015-09-04 12:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-19 17:06 [Bug c/67279] New: -fsanitize=undefined spurious error: initializer element is not constant zeccav at gmail dot com
2015-08-19 17:09 ` [Bug c/67279] " mpolacek at gcc dot gnu.org
2015-08-19 18:59 ` zeccav at gmail dot com
2015-08-19 19:33 ` zeccav at gmail dot com
2015-08-19 19:55 ` manu at gcc dot gnu.org
2015-08-20  7:15 ` zeccav at gmail dot com
2015-08-20  8:38 ` mpolacek at gcc dot gnu.org
2015-09-02 21:01 ` mpolacek at gcc dot gnu.org
2015-09-04 12:38 ` 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).