[Bug c/90081] stdint constant macros evaluating to wrong type

2019-04-15 Thread bafap5 at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90081 --- Comment #5 from Guy Perfect --- (In reply to Harald van Dijk from comment #4) That was my line of thinking: supplying a cast in the macro. Even in the case of negative values being cast to unsigned types, the language spec provides a rule for

[Bug c/90081] stdint constant macros evaluating to wrong type

2019-04-13 Thread bafap5 at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90081 --- Comment #2 from Guy Perfect --- The issue is not resolved based on the merits of the out-of-range values used in the earlier examples. Type resolution still fails in the current implementation, as demonstrated below: int x = sizeof ((int8_

[Bug c/90081] New: stdint constant macros evaluating to wrong type

2019-04-13 Thread bafap5 at yahoo dot com
: c Assignee: unassigned at gcc dot gnu.org Reporter: bafap5 at yahoo dot com Target Milestone: --- stdint.h defines macros for expressing integer constant expressions in such a way that they evaluate to given types. In the stdint.h spec: "The macro INTN_C( value) shall e