[{"id":3679904,"web_url":"http://patchwork.ozlabs.org/comment/3679904/","msgid":"<aeeFl7fgEoS8bjOz@redhat.com>","list_archive_url":null,"date":"2026-04-21T14:11:35","subject":"Re: [PATCH] c++: Fix up iterating expansion stmt b and e var\n handling [PR124927]","submitter":{"id":14370,"url":"http://patchwork.ozlabs.org/api/people/14370/","name":"Marek Polacek","email":"polacek@redhat.com"},"content":"On Tue, Apr 21, 2026 at 08:06:06AM +0200, Jakub Jelinek wrote:\n> Hi!\n> \n> The following testcase ICEs, because the TARGET_EXPR it had has VOID_TYPE\n> TARGET_EXPR_INITIAL and force_target_expr obviously ICEs when trying to\n> create a VOID_TYPE TARGET_EXPR.\n> \n> This patch fixes it by taking the cv_unqualified type of the TARGET_EXPRs\n> before we extract their TARGET_EXPR_INITIAL, so it does the desirable thing\n> of recreating the TARGET_EXPRs with cv unqualified types.\n> \n> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?\n\nNot an approval but LGTM.  The code is nicer this way too.\n \n> 2026-04-21  Jakub Jelinek  <jakub@redhat.com>\n> \n> \tPR c++/124927\n> \t* pt.cc (finish_expansion_stmt): Compute types for force_target_expr\n> \tfrom b and e before extracting TARGET_EXPR_INITIAL from it.\n> \n> \t* g++.dg/cpp26/expansion-stmt41.C: New test.\n> \n> --- gcc/cp/pt.cc.jj\t2026-04-16 18:56:51.668066801 +0200\n> +++ gcc/cp/pt.cc\t2026-04-20 13:30:31.137795700 +0200\n> @@ -33499,14 +33499,14 @@ finish_expansion_stmt (tree expansion_st\n>  \t     so that e.g. b can be incremented, so unwrap the TARGET_EXPRs\n>  \t     and force TARGET_EXPR with the cv-unqualified type which is\n>  \t     a hack replacement for a VAR_DECL in a lambda.  */\n> +\t  tree btype = cv_unqualified (TREE_TYPE (b));\n> +\t  tree etype = cv_unqualified (TREE_TYPE (e));\n>  \t  if (TREE_CODE (b) == TARGET_EXPR)\n>  \t    b = TARGET_EXPR_INITIAL (b);\n>  \t  if (TREE_CODE (e) == TARGET_EXPR)\n>  \t    e = TARGET_EXPR_INITIAL (e);\n> -\t  b = force_target_expr (cv_unqualified (TREE_TYPE (b)), b,\n> -\t\t\t\t tf_warning_or_error);\n> -\t  e = force_target_expr (cv_unqualified (TREE_TYPE (e)), e,\n> -\t\t\t\t tf_warning_or_error);\n> +\t  b = force_target_expr (btype, b, tf_warning_or_error);\n> +\t  e = force_target_expr (etype, e, tf_warning_or_error);\n>  \t  tree w = build_stmt (loc, WHILE_STMT, NULL_TREE, NULL_TREE,\n>  \t\t\t       NULL_TREE, NULL_TREE, NULL_TREE);\n>  \t  tree r = get_target_expr (build_zero_cst (ptrdiff_type_node));\n> --- gcc/testsuite/g++.dg/cpp26/expansion-stmt41.C.jj\t2026-04-20 13:49:08.090898732 +0200\n> +++ gcc/testsuite/g++.dg/cpp26/expansion-stmt41.C\t2026-04-20 13:54:28.439482931 +0200\n> @@ -0,0 +1,28 @@\n> +// PR c++/124927\n> +// { dg-do run { target c++23 } }\n> +// { dg-options \"\" }\n> +\n> +#include <array>\n> +#include <ranges>\n> +\n> +constexpr std::array a { 1, 2, 3, 4, 5 };\n> +constexpr std::array b { 5, 4, 3, 2, 1 };\n> +\n> +int\n> +foo (int i)\n> +{\n> +  template for (constexpr auto z : std::views::zip (a, b)) // { dg-warning \"'template for' only available with\" \"\" { target c++23_down } }\n> +    if (i == get <0> (z))\n> +      return get <1> (z);\n> +  return 0;\n> +}\n> +\n> +int\n> +main ()\n> +{\n> +  for (int i = 1; i <= 5; ++i)\n> +    if (foo (i) != 6 - i)\n> +      __builtin_abort ();\n> +  if (foo (0) != 0 || foo (6) != 0)\n> +    __builtin_abort ();\n> +}\n> \n> \tJakub\n> \n\nMarek","headers":{"Return-Path":"<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":["incoming@patchwork.ozlabs.org","gcc-patches@gcc.gnu.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","gcc-patches@gcc.gnu.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=EhIZ6y6w;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)","sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=EhIZ6y6w","sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com","sourceware.org; spf=pass smtp.mailfrom=redhat.com","server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.129.124"],"Received":["from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0PSC3cyMz1yJG\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 00:12:11 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 7C24B4BA902C\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 14:12:09 +0000 (GMT)","from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by sourceware.org (Postfix) with ESMTP id 24A4B4BA9004\n for <gcc-patches@gcc.gnu.org>; Tue, 21 Apr 2026 14:11:41 +0000 (GMT)","from mail-ot1-f72.google.com (mail-ot1-f72.google.com\n [209.85.210.72]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-433-bDyXFmgTPMqRmg7VJhbNOA-1; Tue, 21 Apr 2026 10:11:39 -0400","by mail-ot1-f72.google.com with SMTP id\n 46e09a7af769-7dcdeac07b1so866814a34.3\n for <gcc-patches@gcc.gnu.org>; Tue, 21 Apr 2026 07:11:39 -0700 (PDT)","from redhat.com ([2603:7000:9500:10::1db4])\n by smtp.gmail.com with ESMTPSA id\n 6a1803df08f44-8b02ae6133dsm101438926d6.25.2026.04.21.07.11.37\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 21 Apr 2026 07:11:37 -0700 (PDT)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 7C24B4BA902C","OpenDKIM Filter v2.11.0 sourceware.org 24A4B4BA9004"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 24A4B4BA9004","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 24A4B4BA9004","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776780701; cv=none;\n b=iq69qog+8fseECXyk6FXWfNsvRL+9avasMSxsnWQZECtORUCuVUOCXP7pfsCdDOb6FLpwT42CNPmOI9cFkGcgVceZE+FzR12MqsDSoqEv7fbu4fUZYZ7y1mIZBh6kUTFdXbTpPbNe3NaqIBASWwzRcgs0mFE+aLDUBDcuN7Ptaw=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776780701; c=relaxed/simple;\n bh=nHqyDQiY9yZSr0Nm+3KfHpdmX43UifUkCBwMA+g4rJ8=;\n h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;\n b=DzYq3NzhGdgC2zmCTJEnBYw0Y7XHKr/xIBw8p309+VxhzuSuWvyQSTEVDx91AmrGORVAusWHXEblhHrHDrYtvTkqhstR8S4tmOHKzKJReHLXzpfUhEhbUELC+729tVqc23BNT5ztlttDvkZFDNgTg3hh0wZct+Ztm4yJPEs3nB4=","ARC-Authentication-Results":"i=1; server2.sourceware.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1776780700;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n in-reply-to:in-reply-to:references:references;\n bh=abRJALFIONqY9+YMou8vHjhnk0fMloEkCuz6vvtca6U=;\n b=EhIZ6y6w5KUHyP+26GUlN71F8r/rsQsQ3x5aIKFFo7pgP3x048Z2iCey5Z0IfUNzGtg0Tx\n IL3+FaFQ/u9Teq40WYdn+TD8BL1gsVyeTfHWv2jYwxPplUvhxTkP4eSkAYgxdTM07D1GEV\n UD+9arS354WN/3h+w6EfHwtidH8Ehbg=","X-MC-Unique":"bDyXFmgTPMqRmg7VJhbNOA-1","X-Mimecast-MFC-AGG-ID":"bDyXFmgTPMqRmg7VJhbNOA_1776780698","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776780698; x=1777385498;\n h=user-agent:in-reply-to:content-disposition:mime-version:references\n :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=abRJALFIONqY9+YMou8vHjhnk0fMloEkCuz6vvtca6U=;\n b=HZmioiBDONqXEKhalzG9VcHbBL5CV8i58YKUxPcP+dIsabgwp0ZuNKyILK3+moHoKZ\n rLaUyE4vsM/5H5zH1lwGAl318i1g7H1eB/HaZOgZlgGlVI3nSfIpK1BLG46HciD7Gtyu\n xxakJh3BKicN+NoWkaO/kCzFqeMpCr1jui/4iVBrnQz4BEPHDcspKFfiL0sku6usdUEt\n fTfNp9BkITUU5VB8EyFi/Ty5Kag5enRX/B7oTfW2HPOLpTuXBaOtsBECQjxD43taJNdU\n b73RJpG654sL3z2XaBak8uTUUy2zSafm8HFPslXKVePKGccot0ARQfoZDZNA0qdW0IlL\n JRTA==","X-Forwarded-Encrypted":"i=1;\n AFNElJ89iHr2qdYzrhXdPQoShVlb3TkslPtXeXXBNTS/iu6kb1a4xOZESmngKFiKV0w8t+PLgzf7p5vfxsxqZw==@gcc.gnu.org","X-Gm-Message-State":"AOJu0Yy116NrNpmKbcEFhM/51ks3FjBhy9HzlszV0EYt3FA0abPOvLM8\n 5SOjtbhsJvG3mnFocnHL70OIVXjVzFlZ5NF07GNFuTKGaoJ7CU6tOxK64So4khjA+dxwHBJtT4w\n uh3JqC3JFl8nxaiEAGHvRjMNnRpRD1NBiCBRVJv6RwelrmCGgFRTISnzH8LI=","X-Gm-Gg":"AeBDiesa9eE5WWXOkM5Pa5+EloFTgP3ZH/cZaGvrg3uDfAVn5VN50bXkc91uPGEZ6QT\n p8fYENmeynympiMXkTcJRg1opq18OEzKafgfRGv3/iy0xrWxZBT+Yc+bAnKB7f1YLrigFXPyAXX\n QckhEc5+Ky/Kp57O5KK7aiKWyFvpcEleLiagAy83JKssg3fouCHzO3jTtthdzhMdVMtp03NQv8X\n noyhUOTWl/gRtoGhsUfCPDVe8YvdeJOy6Wy8kWM8EMxJ2KfAYCw7OFeGJRP/thWtY4cON4xiBZG\n cJAkfhZ9Wha3R9xJa3yaHOQX4uduL5alX3BJpZbi2r3qTPf0NDcG5+IoambCWLcqXRcESlfV+4D\n QVkDlfbtI3FoX","X-Received":["by 2002:a05:6820:2004:b0:694:8646:926b with SMTP id\n 006d021491bc7-69486469317mr4936678eaf.14.1776780698434;\n Tue, 21 Apr 2026 07:11:38 -0700 (PDT)","by 2002:a05:6820:2004:b0:694:8646:926b with SMTP id\n 006d021491bc7-69486469317mr4936646eaf.14.1776780697914;\n Tue, 21 Apr 2026 07:11:37 -0700 (PDT)"],"Date":"Tue, 21 Apr 2026 10:11:35 -0400","From":"Marek Polacek <polacek@redhat.com>","To":"Jakub Jelinek <jakub@redhat.com>","Cc":"Jason Merrill <jason@redhat.com>, gcc-patches@gcc.gnu.org","Subject":"Re: [PATCH] c++: Fix up iterating expansion stmt b and e var\n handling [PR124927]","Message-ID":"<aeeFl7fgEoS8bjOz@redhat.com>","References":"<aecTzk_qu3pwvpEf@tucnak>","MIME-Version":"1.0","In-Reply-To":"<aecTzk_qu3pwvpEf@tucnak>","User-Agent":"Mutt/2.3.1 (2026-03-20)","X-Mimecast-Spam-Score":"0","X-Mimecast-MFC-PROC-ID":"eaEYhZUHlKmMt77GVm4EJFdnLtgbbo4tVe1qxIuRZDk_1776780698","X-Mimecast-Originator":"redhat.com","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","X-BeenThere":"gcc-patches@gcc.gnu.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Gcc-patches mailing list <gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>","List-Archive":"<https://gcc.gnu.org/pipermail/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-request@gcc.gnu.org?subject=help>","List-Subscribe":"<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"}},{"id":3679947,"web_url":"http://patchwork.ozlabs.org/comment/3679947/","msgid":"<1b21110a-69e5-4f2d-a610-7895363c18eb@redhat.com>","list_archive_url":null,"date":"2026-04-21T15:29:15","subject":"Re: [PATCH] c++: Fix up iterating expansion stmt b and e var handling\n [PR124927]","submitter":{"id":4337,"url":"http://patchwork.ozlabs.org/api/people/4337/","name":"Jason Merrill","email":"jason@redhat.com"},"content":"On 4/21/26 10:11 AM, Marek Polacek wrote:\n> On Tue, Apr 21, 2026 at 08:06:06AM +0200, Jakub Jelinek wrote:\n>> Hi!\n>>\n>> The following testcase ICEs, because the TARGET_EXPR it had has VOID_TYPE\n>> TARGET_EXPR_INITIAL and force_target_expr obviously ICEs when trying to\n>> create a VOID_TYPE TARGET_EXPR.\n>>\n>> This patch fixes it by taking the cv_unqualified type of the TARGET_EXPRs\n>> before we extract their TARGET_EXPR_INITIAL, so it does the desirable thing\n>> of recreating the TARGET_EXPRs with cv unqualified types.\n>>\n>> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?\n> \n> Not an approval but LGTM.  The code is nicer this way too.\n>   \n>> 2026-04-21  Jakub Jelinek  <jakub@redhat.com>\n>>\n>> \tPR c++/124927\n>> \t* pt.cc (finish_expansion_stmt): Compute types for force_target_expr\n>> \tfrom b and e before extracting TARGET_EXPR_INITIAL from it.\n>>\n>> \t* g++.dg/cpp26/expansion-stmt41.C: New test.\n>>\n>> --- gcc/cp/pt.cc.jj\t2026-04-16 18:56:51.668066801 +0200\n>> +++ gcc/cp/pt.cc\t2026-04-20 13:30:31.137795700 +0200\n>> @@ -33499,14 +33499,14 @@ finish_expansion_stmt (tree expansion_st\n>>   \t     so that e.g. b can be incremented, so unwrap the TARGET_EXPRs\n>>   \t     and force TARGET_EXPR with the cv-unqualified type which is\n>>   \t     a hack replacement for a VAR_DECL in a lambda.  */\n>> +\t  tree btype = cv_unqualified (TREE_TYPE (b));\n\nThis could also use initialized_type (b) if we make that function \nnon-static.  OK either way.\n\nJason","headers":{"Return-Path":"<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":["incoming@patchwork.ozlabs.org","gcc-patches@gcc.gnu.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","gcc-patches@gcc.gnu.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=fqUbrXtd;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)","sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=fqUbrXtd","sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com","sourceware.org; spf=pass smtp.mailfrom=redhat.com","server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.129.124"],"Received":["from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0R9w0mddz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 01:29:56 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 1AC904B9DB43\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 15:29:54 +0000 (GMT)","from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by sourceware.org (Postfix) with ESMTP id 74AD24B9DB4B\n for <gcc-patches@gcc.gnu.org>; Tue, 21 Apr 2026 15:29:20 +0000 (GMT)","from mail-qv1-f70.google.com (mail-qv1-f70.google.com\n [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-403-cUTrvHOsOs-GnwaiOG96Jg-1; Tue, 21 Apr 2026 11:29:18 -0400","by mail-qv1-f70.google.com with SMTP id\n 6a1803df08f44-8acafc224a8so112238416d6.1\n for <gcc-patches@gcc.gnu.org>; Tue, 21 Apr 2026 08:29:18 -0700 (PDT)","from [192.168.50.130]\n (130-44-146-247.s12789.c3-0.arl-cbr1.sbo-arl.ma.cable.rcncustomer.com.\n [130.44.146.247]) by smtp.gmail.com with ESMTPSA id\n 6a1803df08f44-8b02ae5c4b9sm140642436d6.28.2026.04.21.08.29.16\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Tue, 21 Apr 2026 08:29:16 -0700 (PDT)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 1AC904B9DB43","OpenDKIM Filter v2.11.0 sourceware.org 74AD24B9DB4B"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 74AD24B9DB4B","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 74AD24B9DB4B","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776785365; cv=none;\n b=JgyA51VG/sV8pAyDtN2EkDZwe15OsEGayC64fSk5nwG4vJVinpmraxBxBxGxH4ductxFAe5i2rezTf5RAV2MdHaNcIxRY60KRS6JrUtkooGXEaLRizFf9G0jW3IhU9F++jT7wf5a7qyRSui07zSwLMfCDx8anXOhyrkD/FPvJ6s=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776785365; c=relaxed/simple;\n bh=1shgYE4YiO+4QfsB+3cSbkWEVc59njaXZNZpGffWeIc=;\n h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;\n b=NyIqSu29kMu9DaIGptc6x++dMlMNTaTlAnhnqCYXvaL/kPwaySEocnOtkI9/V0dmLg6pN9sX6ktjhX7BHPoML+d0EXNJJ5x2CLjTYAx3Q/q6+3zLvwYadk+VifZnxHcpdEz06saSeEjAl4O5r/JzRRNu9tdqeYuWA6CGx9GsOL4=","ARC-Authentication-Results":"i=1; server2.sourceware.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1776785360;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=ymngY2tHTksEGU9+329PNQhLArH3fVcXdGbcZaCbaVI=;\n b=fqUbrXtdj+fKqYDxAxYpinrtZSocF0Kyp0TZlYvdikR9PSsAyMHUu+8oxMY3RE/Md5glci\n dAw2Mk9fiTSP2rK7bYckOzFQKCpUEU5fYGw5gaSdBjRDb5ZHJkq0xfLPqp3Qn0p70m7+P7\n o3M3oBqk6DyQkDxQ1KdI7CRzL+0+opM=","X-MC-Unique":"cUTrvHOsOs-GnwaiOG96Jg-1","X-Mimecast-MFC-AGG-ID":"cUTrvHOsOs-GnwaiOG96Jg_1776785358","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776785358; x=1777390158;\n h=content-transfer-encoding:in-reply-to:from:content-language\n :references:cc:to:subject:user-agent:mime-version:date:message-id\n :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=ymngY2tHTksEGU9+329PNQhLArH3fVcXdGbcZaCbaVI=;\n b=r5JrT4EBdmKAq54BXYx6Jl2KRcYlu1e+hTW/Ewp1bqeOHAnoN8XlDQABq2LJeB7NhI\n JoBfWajIysejlzeCkb+AZAIE2Z6U+L4mQB+TpsDxiPZ8JsmnAdgvi6c1O58PQQK96A5P\n QzV3t5U1abyX9QFXbAw/Fatxrk4IhV3/lrxw6GFH64fNmb4dNV9QZetrOCCkSpq/dOgO\n 4CBMKNntD6xWkYo2qOge9uuYu1wm3sit2EuLzkcH8YSYwsG0mXMDTiIV+VPYryIbgaXK\n SmKZLmNTvJIVfNq03CB5tDcwhBPZ7msSvpy4yAW+F+ih1g6xJht5NWiNleMsy7VxZ44D\n oSLw==","X-Gm-Message-State":"AOJu0YzSXtgdG2UGF9VWyIntGV6tiCLe501013luDO0udZ7ujuf5WTgh\n veMvSw7G/0D4EaoQeLbVXCck9Mrhihi1P29+IFiZ03mDpZatTJMpNqxww/ITyvWuIFEdMczSVOh\n ZSUI/f/cONiJQlZ7YomIqY7k7v7cUiDOi0JhHaGXv+2OfEj64egzENqFRtfs=","X-Gm-Gg":"AeBDievh9AM+FD+6/kOFZIycvptuv4uUK5jt+9DqhrGHjEJI2bMHt9bdZm5EGKg12HK\n 9fN4hiVX2SIdoSLmUVFyvQECkut9rrdu4hZfMKc4SKSb7JEHY6wIFGK36cQpZW4xwN3aAvJhrz+\n rQhmX9hOVBs2n06PX423u+MbZsu9o3C+v1al3LEBVCupglVbL+OTUAioTy3RSFeN5DXQnEWYW/m\n 0zR4kRMweC3NpkhW3vrq6wvDgFmVOSV/1E2+rRby6E4mzA4ExK5496A4HEgC7wfZsq+j57oXUUz\n L1j7ZVS+2gAHIvxT5ElgAfBvnmdrO7NZ8tLvUhLgDVK2/bOJksIaxUkl29CwE1el2Kp47AGdyyy\n PlxJTtWhfSvtd1MHewM00PncaEXlJbGCZ8GTYhB9Cyk20QJvJ545TNi+YURrSXfsbaRHSZl1UBq\n 9wrTyBAhVS1HQX127G2gZoctfhwEHyZgJO7AOoOQu/BA==","X-Received":["by 2002:ad4:5ae4:0:b0:8ac:b542:1063 with SMTP id\n 6a1803df08f44-8b0280474bemr308576436d6.15.1776785357865;\n Tue, 21 Apr 2026 08:29:17 -0700 (PDT)","by 2002:ad4:5ae4:0:b0:8ac:b542:1063 with SMTP id\n 6a1803df08f44-8b0280474bemr308575846d6.15.1776785357355;\n Tue, 21 Apr 2026 08:29:17 -0700 (PDT)"],"Message-ID":"<1b21110a-69e5-4f2d-a610-7895363c18eb@redhat.com>","Date":"Tue, 21 Apr 2026 11:29:15 -0400","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [PATCH] c++: Fix up iterating expansion stmt b and e var handling\n [PR124927]","To":"Marek Polacek <polacek@redhat.com>, Jakub Jelinek <jakub@redhat.com>","Cc":"gcc-patches@gcc.gnu.org","References":"<aecTzk_qu3pwvpEf@tucnak> <aeeFl7fgEoS8bjOz@redhat.com>","From":"Jason Merrill <jason@redhat.com>","In-Reply-To":"<aeeFl7fgEoS8bjOz@redhat.com>","X-Mimecast-Spam-Score":"0","X-Mimecast-MFC-PROC-ID":"NehLZoUQxFokVwDzJLLGMGSE48fVRs4lob6XFA7dhRA_1776785358","X-Mimecast-Originator":"redhat.com","Content-Language":"en-US","Content-Type":"text/plain; charset=UTF-8; format=flowed","Content-Transfer-Encoding":"7bit","X-BeenThere":"gcc-patches@gcc.gnu.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Gcc-patches mailing list <gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>","List-Archive":"<https://gcc.gnu.org/pipermail/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-request@gcc.gnu.org?subject=help>","List-Subscribe":"<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"}}]