Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5029458imm; Tue, 9 Oct 2018 08:42:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV60LZnMSJMbMV/i8WZ0I2s63nQIfzsCWXAhdMdxo4UoGZe1zxlyoN2CXz7BoI7oE+P7D7C37 X-Received: by 2002:a17:902:5a0f:: with SMTP id q15-v6mr29879440pli.253.1539099721091; Tue, 09 Oct 2018 08:42:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539099721; cv=none; d=google.com; s=arc-20160816; b=DPCUWuYLiQAQMf+GrSY/bQa4nrwxIo0ZjRPZ+nG7Y2bzOM9vlrEGWbeqFm+LPN3kdu Oh/QQX4v33nbRtiHcqOMraI170XnK75QaFRtAXGS8sbxxzbjz5pPGQ3TqzQfEUid8g0P MhHtCOAPYVWpY++e1PMt3lq2LMFP/b7uTFyuN04nDdWm/ZBEZF3oqmFRZZk9HFAgQh25 i4GCg/d2hj9hG2DJ+4xj2nSuP7qe8RRM68q8ZX6c2pPXZrMARAqGu7uX8ux/Fum0TXaW O0GES/DD9l6Kk7oFzvQax+p2OaY2HPTlXN6lHq3bW4xn1qzPIHvXkXDwnYBz38xgJLIR kGiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-transfer-encoding :mime-version:subject:cc:to:references:in-reply-to:from:organization; bh=BJuuUw9F2rOVYbJXOnz+C3chjPBgMQG+LtlTj7yA4MU=; b=jUqARU6OTCSUArOgjRy68QyAdxp0U9XJpPh+sUuy+HSEBxoMVUK3Qva00vzW8hRjcu c72Uq5Q14jkAjZxDbJhYPlsrxPRtNgkQIA7T6ol6J8IvMwqHQOpI06izSBp4oBDXs4NS l4R5Eaj3Z54BAVMlLRgm0gvD/OVqan8WHLwtNTipmGJRRrqk3hj73bN1CmEiQBpeuRjY SGzxBSvaoY4Ld/LMtMAIR7Kb3veI4IyvKKD8DThU8P/MtGZlmRrzWEyI00ROn0ZQCurx CWSfhEDc9izVrHSWaPYxKvjfTo8IIgTG5l49VGVMT7GBl6GNA7DM6YXr+x9iLAMCq9us +zTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 23-v6si20834659pgs.356.2018.10.09.08.41.46; Tue, 09 Oct 2018 08:42:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726717AbeJIW6s convert rfc822-to-8bit (ORCPT + 99 others); Tue, 9 Oct 2018 18:58:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52592 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726393AbeJIW6r (ORCPT ); Tue, 9 Oct 2018 18:58:47 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B5A22308FC51; Tue, 9 Oct 2018 15:41:16 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-149.rdu2.redhat.com [10.10.120.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id 56A157E10A; Tue, 9 Oct 2018 15:41:12 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <153616290368.23468.7806230605345568524.stgit@warthog.procyon.org.uk> To: Jan Engelhardt Cc: dhowells@redhat.com, linux-api@vger.kernel.org, linux-kbuild@vger.kernel.org, Coly Li , Kent Overstreet , linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 04/11] UAPI: bcache: Fix use of embedded flexible array MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Date: Tue, 09 Oct 2018 16:41:06 +0100 Message-ID: <17992.1539099666@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Tue, 09 Oct 2018 15:41:17 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jan Engelhardt wrote: > """it [the array size expression] shall be a converted constant expression of > type std::size_t and its value shall be greater than zero.""" > —http://eel.is/c++draft/dcl.array Interesting. You're not actually quoting the full sentence: If the constant-expression is present, it shall be a converted constant expression of type std​::​size_­t and its value shall be greater than zero. This suggests that: __u64 ptr[] is actually valid since: D1 [ constant-expressionopt ] attribute-specifier-seqopt suggests that the part between the brackets is optional. David