Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: bobgmeyers at muchomail dot com
Target Milestone: ---
This code:
int
main(void){
uint16_t x;
x=5;
do{
x<<=1U;
x++;
}while(1);
}
The code obviously outputs nothin
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70389
--- Comment #2 from Bob Meyers ---
Does the most recent C spec actually say that short unsigned ints should be
promoted to signed ints prior to a left shift? (But somehow "x++" just
increments the short unsigned int x with no such implicit conver