C++ Logo

liaison

Advanced search

[isocpp-wg14/wg21-liaison] WG14 N3197 Accessing arrays of character type

From: Jens Maurer <jens.maurer_at_[hidden]>
Date: Sun, 11 May 2025 09:23:15 +0200
The above-captioned paper introduces "byte arrays" and "byte types" into C2y
to deal with certain memory model concerns.
The term "byte type" includes signed chars.

That's a deviation from C++, where "signed char" is never among the
types granting special byte-like behavior in the memory model.

Was there any express desire by WG14 to include "signed char",
or could we remove "signed char" from the "byte" definition in C?

(I think this rule would cause optimizers to assume that "signed char*"
can alias anything, pessimizing code generation.)

Thanks,
Jens

Received on 2025-05-11 07:23:18