From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by sourceware.org (Postfix) with ESMTPS id 175D53858C83 for ; Mon, 7 Nov 2022 18:27:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 175D53858C83 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=acm.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qv1-xf35.google.com with SMTP id h10so8675137qvq.7 for ; Mon, 07 Nov 2022 10:27:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=HeDP10QcWQaeaAELl+DHe7S6OTjWxiIl6lyfS9atdt4=; b=QPCTyV1jmUFkmB72pfe6ePTgyihfWzpw9KB0apK9NSmQAEBnB/ZvhqvoB1Vf1DSxN4 jbhPQrhF4SLZ9tp2W+bZx16J+HA1hymJ4W8hKGXNVOcB/4HcbvRzczPE/fJULIXSdjoC IMNZhWXRV8YJ+xWBQZ7L5sDgKgnPirDj1yvDYsGVfqqcS5+2q7JlqG22tyaaKJCAbN/h oDr1OTH6Q6u48W4iwYDx06EoPBkzrKG5OBYA6e6cOrx5aK1j+FqdnWupuCGw8c19Bf7N O/JyTbiuRyP5XQpeXQDltg1iUjw2IAp0pGBRkXsS6dryylyfbTZrxfBJUix9DVssFLMe 0bkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HeDP10QcWQaeaAELl+DHe7S6OTjWxiIl6lyfS9atdt4=; b=CIx49qqdMwLsKHQnPNZbJ+W1Q8NEm6HbPZB9VqK0GdtHDRcv8bd0bs9+3PA607o3/n ThRKkidxBiTrwlzW/sJdXzZkqGcmfnBOcnL8H03IXN3GUBLIeFALj7FU28dlsxkZRSTy 9c4LZTyl97NR9U5dvx6BokSmQjBBC4Y/CsZX82ZSMeZdpAwhbQ93FENTCAcfaEyxbAiX S1mjcwZqBAA3zfCwFcxpVj83LKV0mgJZ5/jGK6y0+yavPUENoE8MuzzivyAVxrjFJA8A 1eSrrkRUlfGdDAT4sDumuSf/5nGz7YWcyU+jCphDH+/vtmxMSGRADx+0GvLnXJUhRLNj LUCQ== X-Gm-Message-State: ACrzQf3R52iP209MFIsCyvrVPtVzD3q4gRDc4Yy1gD7ZnxvAI95AZIRT QSKJsdDk4h/1N1YCbOhok7X9MkoA7rSUBw== X-Google-Smtp-Source: AMsMyM5AuNforsTP5CusHsGzJZ0WhnYGEvPxt5z23k7uf0KSiHmj05ux6nhq1UzHULt96yRJ027MOA== X-Received: by 2002:a05:6214:767:b0:4bb:59f0:5079 with SMTP id f7-20020a056214076700b004bb59f05079mr45611550qvz.30.1667845678256; Mon, 07 Nov 2022 10:27:58 -0800 (PST) Received: from ?IPV6:2601:19c:527f:bfd0::5? ([2601:19c:527f:bfd0::5]) by smtp.googlemail.com with ESMTPSA id w10-20020ac843ca000000b003a4f2510e5dsm6452448qtn.24.2022.11.07.10.27.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Nov 2022 10:27:57 -0800 (PST) Sender: Nathan Sidwell Content-Type: multipart/mixed; boundary="------------U2EjZt64l13FL8LiVuDQfOd3" Message-ID: <29a64538-62fa-63a6-39ed-ed9165679e43@acm.org> Date: Mon, 7 Nov 2022 13:27:56 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Content-Language: en-US To: GCC Patches From: Nathan Sidwell Subject: C++: Template lambda mangling testcases X-Spam-Status: No, score=-3038.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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: This is a multi-part message in MIME format. --------------U2EjZt64l13FL8LiVuDQfOd3 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit I found some additional cases when working on the demangler. May as well check their mangling. Since I managed to confuse myself. nathan -- Nathan Sidwell --------------U2EjZt64l13FL8LiVuDQfOd3 Content-Type: text/x-patch; charset=UTF-8; name="0001-C-Template-lambda-mangling-testcases.patch" Content-Disposition: attachment; filename="0001-C-Template-lambda-mangling-testcases.patch" Content-Transfer-Encoding: base64 RnJvbSA1MWQ1NjdkNGQxNWU3OGI0MmQyY2E4M2YyMjljOThmZmYyYWVjOWZhIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBOYXRoYW4gU2lkd2VsbCA8bmF0aGFuQGFjbS5vcmc+ CkRhdGU6IE1vbiwgNyBOb3YgMjAyMiAxMTowODoyMSAtMDUwMApTdWJqZWN0OiBbUEFUQ0hd IEMrKzogVGVtcGxhdGUgbGFtYmRhIG1hbmdsaW5nIHRlc3RjYXNlcwoKSSBmb3VuZCBzb21l IGFkZGl0aW9uYWwgY2FzZXMgd2hlbiB3b3JraW5nIG9uIHRoZSBkZW1hbmdsZXIuICBNYXkg YXMKd2VsbCBjaGVjayB0aGVpciBtYW5nbGluZy4KCglnY2MvdGVzdHN1aXRlLwoJKiBnKysu ZGcvYWJpL2xhbWJkYS10cGwxLmg6IEFkZCBtb3JlIGNhc2VzLgoJKiBnKysuZGcvYWJpL2xh bWJkYS10cGwxLTE3LkM6IEFkZCBjaGVja3MuCgkqIGcrKy5kZy9hYmkvbGFtY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