HomePhabricator

[Sema] Issue a warning for integer overflow in struct initializer

Description

[Sema] Issue a warning for integer overflow in struct initializer

Clang wasn't issuing a warning when compiling the following code:

struct s {

unsigned x;

} s = {

.x = 4 * 1024 * 1024 * 1024

};

rdar://problem/23399683

Differential Revision: http://reviews.llvm.org/D15097

Details

Committed
ahatanakJan 11 2016, 9:22 AM
Differential Revision
D15097: [Sema] Issue a warning for integer overflow in struct initializer
Branches
Unknown
Tags
Unknown