From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B2063858403; Sun, 16 Oct 2022 15:24:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B2063858403 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665933845; bh=VOHzm6NvTb3lU5ja3WX9lsrMt91cvrn5qOhJP+MgYI4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rOCL9C8NEuDxT+Vr8+SJonlqau/hPhV5q+qv08RautgFAURvvEValSDA2YbxlxdTP WmnfXxrsc/77u8ZMqFJ8riVJWMN2zzMNew2c2yuINxGEyJhs+PRysS0OfnnyFlwsZN yRfaM0znfX92BX+SHIJdMyXVu8qYAfDBJHtyAQj0= From: "ky4ct at arrl dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107278] fails to correctly parse template default function declarations. Date: Sun, 16 Oct 2022 15:24:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ky4ct at arrl dot net 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: Message-ID: In-Reply-To: References: 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=3D107278 --- Comment #2 from Jonathan --- (In reply to Andrew Pinski from comment #1) > Iirc there was a defect report against the c++ standard here and you shou= ld > just foo instead of foo kd5eax@KY4CT CLANG64 ~ $ cat test.cpp template class foo { foo(foo const&) =3D delete; foo(foo const&&) =3D default; }; int main() { return 0; }; kd5eax@KY4CT CLANG64 ~ $ clang++ -std=3Dc++20 test.cpp kd5eax@KY4CT CLANG64 ~ $=