From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0B1B23858D35; Mon, 13 Feb 2023 09:06:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B1B23858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676279210; bh=h3lCwZlCrSgO9F87F/+9yF6UNoGGSLrexopDsw6wfAc=; h=From:To:Subject:Date:From; b=iRkuWo941z4BlxwfwvPxcs0gplxO27fb8C23Me9dEIqHOlLR5G+UMu7bKv8P4EHrJ id2mrxYT8+0RoZ9z2qn4N7E2QoCqNExJR6GXo+frKB+FWVcfPujWHJAbtdGxEWJUlN Djd+E1AxZocd2KFCX3NG0ThpLJ0rtJUjjsWCX0aM= From: "roi.jacobson1 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108769] New: [C++20] __is_trivial returns true even if a default constructor's constrains are unsatisfied Date: Mon, 13 Feb 2023 09:06:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: roi.jacobson1 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108769 Bug ID: 108769 Summary: [C++20] __is_trivial returns true even if a default constructor's constrains are unsatisfied Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: roi.jacobson1 at gmail dot com Target Milestone: --- GCC accepts this code: template struct S { S() requires false =3D default; }; static_assert(__is_trivial(S)); There are some related DRs that GCC doesn't implement (like DR1363), but I don't think this falls under any of them.=