[Bug c/92857] -Wsign-conversion flag issues false positives for expression using typedef'ed unsigned types

2019-12-09 Thread joshua.a.saxby at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92857 Joshua Saxby changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/92857] -Wsign-conversion flag issues false positives for expression using typedef'ed unsigned types

2019-12-09 Thread joshua.a.saxby at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92857 --- Comment #3 from Joshua Saxby --- I can confirm that if `MyUnsigned` is changed to `unsigned char`, the issue persists, however if it is changed to `unsigned int`, the issue is not present.

[Bug c/92857] -Wsign-conversion flag issues false positives for expression using typedef'ed unsigned types

2019-12-09 Thread joshua.a.saxby at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92857 --- Comment #2 from Joshua Saxby --- (In reply to Richard Biener from comment #1) > I think the warning is about foo - bar being carried out in type 'int' due to > integer promotion and that converted to size_t which may turn the negative > resul

[Bug c/92857] New: -Wsign-conversion flag issues false positives for expression using typedef'ed unsigned types

2019-12-08 Thread joshua.a.saxby at gmail dot com
IRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: joshua.a.saxby at gmail dot com Target Milestone: --- Created attachment 47439 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47439&action=e