Imho, permit concatenation with same prefixes (if first of strings is
prefixed but some other not, permit too), reject if they differs.

чт, 9 июля 2020 г., 19:57 Philipp Klaus Krause <p...@spth.de>:

> In the C standard it is implementation-defined what happens if prefixed
> string literals can be concatenated and if yes, what happens.
>
> SDCC currently allows it, and uses the first prefix other than u8 for
> the whole string literal.
>
> E.g.
>
> const char *s = U"test" u"test";
>
> is handled like
>
> const char *s = U"test" U"test";
>
> The Unicode study group of the C++ comittee is considering to make such
> combining a constraint violation (i.e. a diagnostic would be required),
> and suggested this also to the C comittee via the liaison list.
>
> Are there any SDCC users that rely on being able to concatenate prefixed
> string literals?
>
> Philipp
>
>
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to