Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp806511rdd; Tue, 9 Jan 2024 23:13:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4kAig/4ExRZCgbmkXvbza3hiZzFRDwSLfwsbe98dg/mIAD0uX6jrgDaObG1MzR99YStsX X-Received: by 2002:a50:d507:0:b0:557:1792:6e96 with SMTP id u7-20020a50d507000000b0055717926e96mr65009edi.78.1704870797472; Tue, 09 Jan 2024 23:13:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704870797; cv=none; d=google.com; s=arc-20160816; b=TUiiB6HadsOcrX86jd0pPGk3XyfDrAl8TCtXLZEyUNHbONzhBfGbBfoVztRWPh19FA rRMOB8jtuhZTCboLTcJDyqGjQidU8zvRuoF1HGORISBql2iT8YJxXTSo/3+UxfRE1hs/ c9tQ1efSX1vtH87wiGSkJeEmkxl5XqjV4VtZSwBcBF2bE4NIKwNs+PcGnJMhkVnT+hK5 mCM0HDEQVB4+dDielWpkifso3z9nYn7/AtQP9s46t6dafAHk1s+JnPpsiZ7VFj0gW0ql slqs7rJFi0Hu38zftgaBOtr7rHE1YajiKMsiynkLivAxP5wzGib8ifI9T4EKYj5+8HT1 XsKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=85ywecMwMu1AdtOzRqPMq0CMfn7XBj3f6oyEvV9h868=; fh=GMc9ZaOf60dGuYrC9tOvXVh7pRL8+shdU0K9aPQRdKk=; b=J5CS0RgBatu5E8XHorelYew5rDB62rwyJYqRZDpYikrFq4TGI4zWPZWVL7YnIPta3f XlyrxaAVH0HWBipUDJW8J6lrR45/ksdeV3SXw5U82mvVUiKi5zt/FHmGAFQEVzAzG1y7 YBqFjNkpHp+nytnipCJV+Zt5htVcDybCYwRths9KKNcC1u+Fgho7nDYQzluvregqIbFu gxRKeVdNVDSIPBl6pOh8Q+nxnp5T9YmBE+3WZtGphOiVstm/7UCX6s0LkfX8JhmhFqiL 2zoTUNOOm2KXp9/71j4RWnRcW/wJWhVQ7GMjMKTOTifyu1upQm2RhfncYfDthwAEqb+u 6Rzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cXPjv9Lh; spf=pass (google.com: domain of linux-kernel+bounces-21770-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21770-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y6-20020a056402440600b0054cfd045e4esi1464985eda.363.2024.01.09.23.13.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 23:13:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21770-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cXPjv9Lh; spf=pass (google.com: domain of linux-kernel+bounces-21770-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21770-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3C2F01F26F98 for ; Wed, 10 Jan 2024 07:13:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4A08381C8; Wed, 10 Jan 2024 07:13:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cXPjv9Lh" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 696F536AFE for ; Wed, 10 Jan 2024 07:13:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-553ba2f0c8fso4311192a12.1 for ; Tue, 09 Jan 2024 23:13:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704870789; x=1705475589; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=85ywecMwMu1AdtOzRqPMq0CMfn7XBj3f6oyEvV9h868=; b=cXPjv9LhGjNqdF4l18e0fT3sfTUr9s3DSRKJIWocWyS7gHfv2N5j8bLXGkzcYOIB1a X1dErwyilpwHRUddF5Fog0dBBnlfYi61ksvZGfW+wAKnrmpncPMbU04YjVIm6bMVAvpW pSkRh5qNrUlwgv2o1NMTFyU+Mhay2oqqgn8UH+74hS596QWbZdGWMT8bGbxwsStONd41 9yjnVs3wtJ8JmOIt02yM8W7evz0w9tim+5oVjy2uTQpC1XV1Uk+HGxk7g9CawwghOzZG +hADDNWUwrKZK5Uwdab7B9fiQA4vJLP/gtu3qlseFz3nuhi5EYGmjmfdDp9fVinEM5ud aKNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704870789; x=1705475589; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=85ywecMwMu1AdtOzRqPMq0CMfn7XBj3f6oyEvV9h868=; b=AnQEc/LYAVhxUHtl1Xh6NM8uT9MVmGz9w4ZKT3ly0pGzQUvEmKfJcDveDdVdZaJKsc Hn8Xf108hQN6XzAVDe0H0qOc9LpPGMqVp+qnzu9lQ9mo4TPQTosZfLoR4R7plcxZBW7t Wmq7qWp0YFzvFzXlsDHSmqYQiF9E6QWOXNJ9SBczhYzXE+gBCLL1hEBkFRvDCfvXqNDR xruKjtep/AHZppAtv9YgwFGZyyTk0oMhHGNd7kZ0haT8cLzSxOXcpVkCUvQrSqLHLTtB 8bAc56F9/a1vFalatQQPMOFHaPeDx8vAEb/GuVluQRW/EAUH1vgEBtLGx+IfYOOeDPL2 VPuA== X-Gm-Message-State: AOJu0YyKQ4IZeNSdwirps4RgvAMjOXh0Ts9WR4uUBJCNtlf1gnsdmU8o yg/PqMSpLcZrNlvh3AmEZA== X-Received: by 2002:a50:bb6d:0:b0:554:51a4:a00 with SMTP id y100-20020a50bb6d000000b0055451a40a00mr94414ede.66.1704870789480; Tue, 09 Jan 2024 23:13:09 -0800 (PST) Received: from p183 ([46.53.248.125]) by smtp.gmail.com with ESMTPSA id es13-20020a056402380d00b00557535489adsm1734767edb.37.2024.01.09.23.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 23:13:09 -0800 (PST) Date: Wed, 10 Jan 2024 10:13:07 +0300 From: Alexey Dobriyan To: David Howells Cc: "H. Peter Anvin" , pinskia@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/45] C++: Convert the kernel to C++ Message-ID: References: <3465e0c6-f5b2-4c42-95eb-29361481f805@zytor.com> <152261521484.30503.16131389653845029164.stgit@warthog.procyon.org.uk> <1681813.1704843645@warthog.procyon.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1681813.1704843645@warthog.procyon.org.uk> On Tue, Jan 09, 2024 at 11:40:45PM +0000, David Howells wrote: > There was also a problem with leaving gaps in static array initialisation and > a problem with statically initialising fields out of order (with respect to > the order they're declared in the struct declaration). Possibly these have > been fixed in g++. They weren't :-( https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113124 Right now g++ hard errors some patterns of C99 inititialisation which clang++ allows (with warnings which can be turned off). However, clang++ doesn't believe in pointer arithmetic on void*.