> On May 26, 2023, at 2:15 PM, Joseph Myers <jos...@codesourcery.com> wrote: > > On Fri, 26 May 2023, Qing Zhao via Gcc-patches wrote: > >>> What if the string is a wide string? I don't expect that to work (either >>> as a matter of interface design, or in the present code), but I think that >>> case should have a specific check and error. >> >> Dump question: how to check whether the string is a wide string? -:) > > By examining the element type; the only valid case for the attribute would > be an element type of (const) char. (I think it's reasonable to reject > all of char8_t, char16_t, char32_t, wchar_t strings in this context.) Okay, will study a little bit and do this. Thanks Qing > > -- > Joseph S. Myers > jos...@codesourcery.com
- [V1][PATCH 0/3] New attribute "element_coun... Qing Zhao via Gcc-patches
- [V1][PATCH 1/3] Provide element_count attri... Qing Zhao via Gcc-patches
- Re: [V1][PATCH 1/3] Provide element_cou... Joseph Myers
- Re: [V1][PATCH 1/3] Provide element... Qing Zhao via Gcc-patches
- Re: [V1][PATCH 1/3] Provide ele... Joseph Myers
- Re: [V1][PATCH 1/3] Provid... Qing Zhao via Gcc-patches
- Re: [V1][PATCH 1/3] Provid... Qing Zhao via Gcc-patches
- Re: [V1][PATCH 1/3] Pr... Joseph Myers
- Re: [V1][PATCH 1/3... Qing Zhao via Gcc-patches
- Re: [V1][PATCH 1/3... Joseph Myers
- Re: [V1][PATCH 1/3... Qing Zhao via Gcc-patches
- Re: [V1][PATCH 1/3... Qing Zhao via Gcc-patches
- Re: [V1][PATCH 1/3... Joseph Myers
- Re: [V1][PATCH 1/3... Qing Zhao via Gcc-patches
- Re: [V1][PATCH 1/3... Joseph Myers
- Re: [V1][PATCH 1/3... Qing Zhao via Gcc-patches