(original) (raw)

From owner-sc22wg14+sc22wg14-domo2=www.open-std.org@open-std.org Thu Jul 9 18:49:04 2020 Return-Path: owner-sc22wg14+sc22wg14-domo2=www.open-std.org@open-std.org X-Original-To: sc22wg14-domo2 Delivered-To: sc22wg14-domo2@www.open-std.org Received: by www.open-std.org (Postfix, from userid 521) id 9DB1F358902; Thu, 9 Jul 2020 18:49:04 +0200 (CEST) Delivered-To: sc22wg14@open-std.org Received: from hermes.rbi.informatik.uni-frankfurt.de (hermes.rbi.informatik.uni-frankfurt.de [141.2.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by www.open-std.org (Postfix) with ESMTP id 544173568C5 for sc22wg14@open-std.org; Thu, 9 Jul 2020 18:49:03 +0200 (CEST) Received: from hera.rbi.informatik.uni-frankfurt.de (hera.rbi.informatik.uni-frankfurt.de [141.2.1.1]) by hermes.rbi.informatik.uni-frankfurt.de (8.15.2/8.14.7) with ESMTP id 069Gmv6g027122; Thu, 9 Jul 2020 18:48:57 +0200 Received: from [192.168.1.21] ([94.239.41.6]) (authenticated bits=0) by hera.rbi.informatik.uni-frankfurt.de (8.15.2/8.13.8) with ESMTPSA id 069Gmeo8030444 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 9 Jul 2020 18:48:41 +0200 Subject: Re: (SC22WG14.18104) [ String Literals ] Combinations of String Literals To: JeanHeyd Meneide phdofthehouse@gmail.com, liaison@lists.isocpp.org, wg14 sc22wg14@open-std.org References: 20200709125647.214B635698B@www.open-std.org From: Philipp Klaus Krause philipp@informatik.uni-frankfurt.de Autocrypt: addr=philipp@informatik.uni-frankfurt.de; prefer-encrypt=mutual; keydata= mQINBEoAE74BEACs/noJSmchGdHWh0kNyERBiWUe0WdTCpL4Ogij5vtJlvMYAlCybVcrUrV3 vQ5GXsa5TPiVHmVFTKemUhNTH/AMrPYELrpvqDyd0kOEJXSwEX7raeI6zianJeZnSoOvW4xK YibbihPYmOPBzQ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f02EXjlxTunU8blgam8aXU49O3rsH1xJyrN8eh6agpMLmSEnP7Xy7rYbW+RfiG AIXqPn6E//GWJmM3HnGIlZbq8fsESQGPcnoBwoJlkxW7PJ8MC2RRGB2GBq7tyX8zsLvOX6ER yXWw7wPc7hSuVWS1/hSOSWdAj7XSAsWZA22+hpHHf7YPunU5FvcvO35AbtOsGxAvMtQHLk1m XTPdVG3k7bo6oUOAspeYEcMTcUlysIYT1k0Ck4jZ0XEFPvrjWL2pvAqMnl7ZPgh4IC/js0Vz ynMRZCF7cZzpMRzAIdjQe5/Qe1OGlL2yoisK1en6EFHitarFZQhHCT88uecaUMuebYpKUN5m 6qJ4YwCuqWH9xNPvzaR3oQ== Message-ID: 40bad0a6-07a9-f313-5d49-cc4895ccb775@informatik.uni-frankfurt.de Date: Thu, 9 Jul 2020 18:48:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: 20200709125647.214B635698B@www.open-std.org Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED,BAYES_50 autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on hermes.rbi.informatik.uni-frankfurt.de Sender: owner-sc22wg14@open-std.org Precedence: bulk Am 09.07.20 um 14:56 schrieb JeanHeyd Meneide: > Hello everyone, small implementation question here! > > It is "conditionally supported" to allow concatenating string > literals of different prefixes together. However, none of the Big > Compilers™ accept such code: https://compiler-explorer.com/z/4NDo-4 > > […] > > C++'s Study Group 16 - The Unicode/Text Group - has been > considering proposals for removing such a thing since it seems nobody > is implementing. I'd like to get a feel for if there are any C > compilers that do implement string concatenation from different > prefixes together, and what their results are? If nobody has > implemented it or even tried to use it, it will serve as a data point > for SG16 about the status of this conditionally supported feature. SDCC implements it (using the first encoding encountered, except that as an extension, SDCC currently also allows combining with u8-prefixed literals, in which case the u8 does not count as prefix). But I wouldn't be surprised if there are no or few users. I'll ask on the sdcc-users mailing list (though naturally, most users are not on the mailing list). Even if it would be disallowed in a future standard we could just emit a warning, and otherwise do what we did before if users rely on it. Philipp /philipp@informatik.uni-frankfurt.de/sc22wg14@open-std.org/phdofthehouse@gmail.com/sc22wg14@open-std.org/owner-sc22wg14+sc22wg14-domo2=www.open-std.org@open-std.org