re PR c/67279 (-fsanitize=undefined spurious error: initializer element is not constant)
authorMarek Polacek <polacek@redhat.com>
Fri, 4 Sep 2015 12:37:39 +0000 (12:37 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 4 Sep 2015 12:37:39 +0000 (12:37 +0000)
commitb2aaf235774b638c79fbde5ba18bd3495b7230f8
tree3156c4838771e5bc99a49e5de85bcec907dec839
parentf16081c2c6fb60a69195c3810fd88ed263757d21
re PR c/67279 (-fsanitize=undefined spurious error: initializer element is not constant)

PR sanitizer/67279
* c-typeck.c (build_binary_op): Don't instrument static initializers.

* gcc.dg/ubsan/pr67279.c: New test.

From-SVN: r227491
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ubsan/pr67279.c [new file with mode: 0644]