From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by sourceware.org (Postfix) with ESMTPS id 1962D3858D32 for ; Thu, 1 Dec 2022 23:56:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1962D3858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-x531.google.com with SMTP id e13so4407326edj.7 for ; Thu, 01 Dec 2022 15:56:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=NTw+/Cn269FlcjEw/gqO4BQNnq2laUO2q2HGnpkk0i8=; b=QQxs0EU+l/ug9aospi2zKC85uHCJ3GdgdtSeJBB2Le+tfGBuEUitq+VIBU/ecqmPpW sqOu7FSkWN1ygJzw7YUfaEK4cZ0KHPGUdbFHMBlDKvqpm+VNTzjNgv0NeCDAyX5dJYuW f+017Pas8cN2NnCum+0MfISh7n7w0a+SSCCLVdCOdZnyZLxneCjs4z0/YfOp0gbs91LY 2DkqiESqDQ1ECm1U62Tu84gXEirpzNhjngM6UyOLjbsCWyqIi0Mku9qcbKWh9uADhDZf WrAuPRPkKqAgtEhIY8JLF/LfVEQner9VdPpGIeAV0sfAGJNGNvqoiq6pz8My35GolYo4 6pzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NTw+/Cn269FlcjEw/gqO4BQNnq2laUO2q2HGnpkk0i8=; b=TcIsv8ftW1XkXD+dARonSVnQR2oVk7kG7pppiRbsSJ0qDYFx7AfpSpe423Xfzuvixy u1Wttq0F3LuuNN4Bijh2vKOGKjAAhwkqRat5tn4HMC2H5RpDckDkL6Anus2bQJMzrAOx HOkWzwzBXDxF0Fnd9aDY8+K4JtnFTbgj3PCaz/ZV0KXSle5rJR7AtAjcZEV+x6ExMIK/ am4ZPCZo8ItxS5p0FxMfD70TcNCXtcHUMcuM8obJvTh0h02pLY9nyqyARVJaw3H6SeUz ENmDPTQs842XUiY1sNoWo17CFZjPtFBrp6YQxjnY9FDC+HvW3zQCTeewKp8X6XS7Hvxw 7NlQ== X-Gm-Message-State: ANoB5pm+923T7WhqpUFWokqZkJBRQ5INoSUHv/zGILVAkGFJ8nKKESyy Qzr76vhtOlKtUe8KpLvCkIqhv4soXooHAt2NUFM= X-Google-Smtp-Source: AA0mqf5t35SazknoGDPjX8Ojrvdn3Oug63rtWFozoCTIgdHDZqhbxMlr/2JcEjAiuDA/torrvjyq66idkfJIqVGPIkI= X-Received: by 2002:aa7:dd45:0:b0:45a:3c66:b0e4 with SMTP id o5-20020aa7dd45000000b0045a3c66b0e4mr62940891edw.33.1669939013946; Thu, 01 Dec 2022 15:56:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Thu, 1 Dec 2022 23:56:42 +0000 Message-ID: Subject: Re: which compiler is right (either to compile or to barf)... To: leon zadorin Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham 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 Thu, 1 Dec 2022 at 23:54, Jonathan Wakely wrote: > Those constructors are irrelevant. It's undefined to instantiate *any* > std::lib template with an incomplete type unless *explicitly* > permitted. It is explicitly permitted for vector and shared_ptr. It is > not permitted for optional. I forgot to give the standard reference. See [res.on.functions] p2 (2.5).