> On Thu, 29 Oct 2020, Jan Hubicka wrote: > > > > > > > That's ugly and will for sure defeat warning / access code > > > when we access this as char[], no? I mean, we could > > > as well use 'int str[1];' here? > > > > Well, we always get char pointer via macro that is IMO OK, but I am also > > not very much in love with this. > > > > > > Maybe we can invent some C++ attribute for this? > > > > > > [[gnu::string]] > > > > > > or so that marks it as actual char and not typeless storage? > > > > Attribute would probably make sense. Not sure if gnu::string is best > > name given that it can be also meaningful for array of small integers > > (such as in wide_int). > > OK, maybe [[gnu::strictly_typed]] then?
This looks like good idea to me (and probably also making difference with signed char as Jakub suggests). I am adding Jason to CC, since he may know better. Honza