From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22699 invoked from network); 14 May 2023 05:26:59 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 14 May 2023 05:26:59 -0000 Received: from mimir.eigenstate.org ([206.124.132.107]) by 9front; Sun May 14 01:25:50 -0400 2023 Received: from abbatoir (pool-108-27-53-161.nycmny.fios.verizon.net [108.27.53.161]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id 69c9e469 (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO) for <9front@9front.org>; Sat, 13 May 2023 22:25:47 -0700 (PDT) Message-ID: To: 9front@9front.org Date: Sun, 14 May 2023 01:25:45 -0400 From: ori@eigenstate.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: immutable open table cache Subject: Re: [9front] [PATCH] cc: support const and restrict inside array declarations Reply-To: 9front@9front.org Precedence: bulk Quoth mia soweli : > this allows c23 style array declarations (see c23 draft section 6.7.6), > with type qualifiers inside the brackets. > for example: > > const int list[restrict 4]; > int list[const 4]; > int list[const restrict 4]; > int list[volatile 4]; > int list[noret 4]; /* we may not want to allow this */ > > they are ignored as with other uses of const, restrict, and volatile. > it does not allow > > int list[static 4]; > > which is also allowed in c23. > I'm not sure why this is useful. Is there some specific code that wants this?