https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19986 Bug 19986 depends on bug 25186, which changed state.
Bug 25186 Summary: (short)(((int)short_var) <<1) should be folded so that the shift is done in the short type https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25186 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED