[Bug c/24542] integer overflow should be warned on assignment to wider variable

2005-10-26 Thread alexey at hyperroll dot com
--- Comment #2 from alexey at hyperroll dot com 2005-10-26 15:03 --- Created an attachment (id=10062) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10062&action=view) example of code to warn, proposed partial patch -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24542

[Bug c/24542] integer overflow should be warned on assignment to wider variable

2005-10-26 Thread alexey at hyperroll dot com
--- Comment #1 from alexey at hyperroll dot com 2005-10-26 15:01 --- I'm not familiar with the parse tree, so I could do only a partial patch (assignment, not initialization). The example file, original and patched source files archived and attached. -- http://gcc.gnu.org/bugzilla/s