sg16-unicode / sg16

SG16 overview and general information
45 stars 5 forks source link

Make wide multicharacter character literals ill-formed #65

Open peter-b opened 3 years ago

peter-b commented 3 years ago

It's currently possible to use a wide character literal with multiple characters, e.g.:

wchar_ta = L'🤦‍♀️'
wchar_tb = L'ab';
wchar_tc = L'é';

In P2178 it was pointed out that these have widely different interpretations across different implementations, and that it probably isn't possible to specify a portable and consistent interpretation. Seek to make these literals ill-formed.

peter-b commented 3 years ago

P2362R0 Make obfuscating wide character literals ill-formed