From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 561D53858C56 for ; Fri, 4 Nov 2022 17:18:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 561D53858C56 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667582323; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sBws3yPp/q9QDdzO64vuhRDYN8mc7xOSVl2D4AsWYYI=; b=DSemPjtqmqND6yb0G843pkODIuE83UqDoAHMAIfVb1/66uF5/XkBs3fQF0XODIiLq0GcFu 0sZfSg7pGGtQEfKPvpkUwNe0Sis81nOM3ZpX8e0oB4Kn395yURxCSb4tI+5DEa3jsTDlY6 CK+xHRoW7enFFxRdNDUJi3ivcjIwR7k= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-13-2pAKyaibPkOaBkxKkBEosw-1; Fri, 04 Nov 2022 13:18:41 -0400 X-MC-Unique: 2pAKyaibPkOaBkxKkBEosw-1 Received: by mail-qk1-f198.google.com with SMTP id u7-20020a05620a0c4700b006ee526183fcso4851514qki.8 for ; Fri, 04 Nov 2022 10:18:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sBws3yPp/q9QDdzO64vuhRDYN8mc7xOSVl2D4AsWYYI=; b=2DfR3Pl5so7qbCKlcGjQvtan6Z2wZkDaLXjFbO6gd2Ce6ibLI2P0YBwSZV5HuF0ajb 7NTy2A8RkzdywUXRcDh5Plj3yVO3CaqTcOyuGLgPKevuu7/B1zIRL3ytulxPF4j99kNW jwXOo/5Zc4o94RLaOStMUaA56Lw1d+cSrBYYayfcvL9QgB4mehXwwXoVouyZwx+W++ld VRcz5HKiUUjClt1804btcPjBDppihtq7BsNztUTPGkq5NmFwxiRGmL2jZQnnrsS/e1+o nNuEZTEVKOp/y+yY1uNLCPYrxMG7sC4X4Z2vWtVSLf1deq8GtH7RK2eOpgnjoIhtfd72 kSzA== X-Gm-Message-State: ACrzQf11JYqwYBAZ5SUF/TPXP/n38B2eqqnWaM+HJqhkO7CBJu4bDOoE sEZ0LMJ67lLmyN1GDfi9FfA+ecZh9E/ulTQUkc2/oq673H56kTQQhZhYjxIIA2Y53tb0zNtHfaS 7EQb9nFFJu+i0J7hNfw== X-Received: by 2002:ae9:f209:0:b0:6ce:24c1:13d5 with SMTP id m9-20020ae9f209000000b006ce24c113d5mr27306908qkg.330.1667582321038; Fri, 04 Nov 2022 10:18:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5dB9EyJKvG243Z+qa0bF/bXFCocrEGLuShWNm6VA6Nllw7OSy78niX7GK1louNiq3TGJH61w== X-Received: by 2002:ae9:f209:0:b0:6ce:24c1:13d5 with SMTP id m9-20020ae9f209000000b006ce24c113d5mr27306885qkg.330.1667582320697; Fri, 04 Nov 2022 10:18:40 -0700 (PDT) Received: from [192.168.1.101] (130-44-159-43.s15913.c3-0.arl-cbr1.sbo-arl.ma.cable.rcncustomer.com. [130.44.159.43]) by smtp.gmail.com with ESMTPSA id c7-20020a05620a268700b006f84ee3a4f3sm3381397qkp.48.2022.11.04.10.18.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Nov 2022 10:18:40 -0700 (PDT) Message-ID: <79ae6bb7-df3b-0c1c-3309-d36efe2a5e76@redhat.com> Date: Fri, 4 Nov 2022 13:18:33 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH] testsuite: Add testcase from C++23 P2314R4 - Character sets and encodings To: Jakub Jelinek Cc: gcc-patches@gcc.gnu.org References: From: Jason Merrill In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 11/4/22 05:14, Jakub Jelinek wrote: > Hi! > > I've read the paper and I believe we just implement it with no changes > needed (at least since PR67224 and similar libcpp changes in GCC 10), > but I could be wrong. > > The following patch at least adds a testcase from the start of the paper. > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? OK. > Do you agree that we can mark the paper as implemented or do you think > we need to change something (what?)? I agree. > 2022-11-04 Jakub Jelinek > > * g++.dg/cpp23/charset1.C: New testcase from C++23 P2314R4. > > --- gcc/testsuite/g++.dg/cpp23/charset1.C.jj 2022-11-03 10:56:48.114588796 +0100 > +++ gcc/testsuite/g++.dg/cpp23/charset1.C 2022-11-03 10:56:39.162711201 +0100 > @@ -0,0 +1,10 @@ > +// P2314R4 > +// { dg-do compile { target c++23 } } > +// { dg-options "-finput-charset=UTF-8 -fexec-charset=UTF-8" } > + > +#define S(x) # x > +const char s1[] = S(Köppe); // "Köppe" > +const char s2[] = S(K\u00f6ppe); // "Köppe" > + > +static_assert (sizeof (s1) == 7); > +static_assert (sizeof (s2) == 7); > > Jakub >