On Wed, 11 Jan 2017, Richard Biener wrote: > As you can see I adjusted dumping of pointer constants (we can't > parse the B suffix and large unsigned numbers get a warning so > add 'U'). There's the general issue that we dump > > short x; > x = 1; > > and then lex the '1' as type int and there's no suffixes for integer > types smaller than int which means we can't write those constants > type correct :/ Suggestions welcome (currently we ICE with type > mismatches in those cases, we can avoid that by auto-fixing during > parsing but I'd like to be explicit somehow).
You could always dump as ((short) 1); that's valid C. -- Joseph S. Myers jos...@codesourcery.com