From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 164963858C54 for ; Wed, 7 Jun 2023 20:53:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 164963858C54 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="6.00,225,1681200000"; d="scan'208";a="9128016" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 07 Jun 2023 12:53:05 -0800 IronPort-SDR: 9h7syEGZ9Sy12JwQ6WmZ1JvLM7LnD+j0TOqvHOQn0oJsu0oJmGFCAcoMhAByx9jQz9jZpRb+Eg Q+HSJenJ0ZEf5n71VUTIv1Cr3bBkmiwPkNqm2QcuvuEK9xVbBdzTRZn+By2e4bgkyyKNm5xMOv EodQEaFj8BOC52mgV+Q4TCQbQ53aDw85uGnt8wZN+zAXBdecpt/pKgZn/5QyIPUObI5bg31Dvg 8EFziX4upmNnQ5pVeRx+PvMa1NP0XOpWUa+fvGVj+ZRMNu51H91P51/YjWd/jXtOm/F3YwuosH MPs= Date: Wed, 7 Jun 2023 20:53:00 +0000 From: Joseph Myers To: Qing Zhao CC: "richard.guenther@gmail.com" , "jakub@redhat.com" , "gcc-patches@gcc.gnu.org" , "keescook@chromium.org" , "siddhesh@gotplt.org" , "uecker@tugraz.at" , "isanbard@gmail.com" Subject: Re: [V1][PATCH 1/3] Provide element_count attribute to flexible array member field (PR108896) In-Reply-To: Message-ID: References: <20230525161450.3704901-1-qing.zhao@oracle.com> <20230525161450.3704901-2-qing.zhao@oracle.com> <28BEA1DA-5277-493D-8C85-1C204AD1B70F@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-14.mgc.mentorg.com (139.181.222.14) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3106.2 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, 7 Jun 2023, Qing Zhao via Gcc-patches wrote: > Hi, Joseph, > > A question here: can an identifier in C be a wide char string? Identifiers and strings are different kinds of tokens; an identifier can't be a string of any kind, wide or narrow. It just so happens that the proposed interface here involves interpreting the contents of a string as referring to an identifier (presumably for parsing convenience compared to using an identifier directly in an attribute). -- Joseph S. Myers joseph@codesourcery.com