From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B8599385841F; Sun, 16 Oct 2022 15:26:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B8599385841F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665934004; bh=Y5A1JKrUYRexFg01xpF9zlM+MmDW/+OM4EByuA14ha4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ni+AzaEYYvMWzhbzQdT03SxQwbKUAjWfEiZE2qL87BMKv0qYsfQKRP9NDcITomMjd Kt6KnWCAc0PhBMb5VoNXC+3WqXzsCMZopraWFHLX2sgIR8OBr98qk+AjuDbIANPyOl kE6z7s9F99M0Yzro1x9X/ju4NSEBnPm8plyqTi64= 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:26:44 +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 #3 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 ~ $ kd5eax@KY4CT UCRT64 ~ $ g++ -std=3Dc++2b test.cpp test.cpp:4:22: error: expected ')' before 'const' 4 | foo(foo const&) =3D delete; | ~ ^~~~~~ | ) test.cpp:5:22: error: expected ')' before 'const' 5 | foo(foo const&&) =3D default; | ~ ^~~~~~ | ) kd5eax@KY4CT UCRT64 ~ $ g++ test.cpp kd5eax@KY4CT UCRT64 ~ $ (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 If that is the case, can you please link the defect report against the standard?=