[Bug d/104911] [12 regression] Comparison failure in gcc/d/typesem.o etc.
ibuclaw at gdcproject dot org
gcc-bugzilla@gcc.gnu.org
Fri Mar 18 10:21:53 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104911
Iain Buclaw <ibuclaw at gdcproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=104738
--- Comment #7 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Ah, yes, of course.
libdruntime/core/stdc/stdint.d:
---
alias int8_t = char;
alias uint8_t = ubyte;
dmd/globals.d:
---
alias d_int8 = int8_t;
alias d_uns8 = uint8_t;
dmd/expression.d:
---
case Tint8:
result = cast(d_int8)value;
break;
case Tchar:
case Tuns8:
result = cast(d_uns8)value;
break;
---
D sees both char and ubyte as having the same signed-ness.
More information about the Gcc-bugs
mailing list