Hi, Joseph, A question here: can an identifier in C be a wide char string?
Qing > 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.) > > -- > Joseph S. Myers > jos...@codesourcery.com