From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5B9F5385E017; Fri, 27 Mar 2020 02:08:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B9F5385E017 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585274929; bh=Oa77e0UhLxPy5rvr1Sbhla3RXPbVz0o5WysbauNcTTg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eELpSwoJ79lg+bHoashVO05xyLtSFa93bmspnDD1MtAItWPcDgAGGEi5gFE+by7rS 6CgUILDrNdj3TMfpVfVjR+cU8/A0vBVu1OO+ydS8ibB4rBsk7Q/ozPOeIhbA2DY/VB zggEgleGLLJi0RZHOoaVi3oL18s/WSjlBBMYP/Fs= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94336] template keyword accepted before destructor names Date: Fri, 27 Mar 2020 02:08:49 +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: 10.0 X-Bugzilla-Keywords: accepts-invalid, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2020 02:08:49 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94336 --- Comment #3 from CVS Commits --- The master branch has been updated by Marek Polacek : https://gcc.gnu.org/g:71d69548a1b2c85220ac6354564fd272beb9263f commit r10-7408-g71d69548a1b2c85220ac6354564fd272beb9263f Author: Marek Polacek Date: Thu Mar 26 16:07:17 2020 -0400 c++: template keyword accepted before destructor names [PR94336] This came up on the C++ core list recently. We don't diagnose the case when 'template' is followed by a destructor name which is not permitted by [temp.names]/5. PR c++/94336 - template keyword accepted before destructor name= s. * parser.c (cp_parser_unqualified_id): Give an error when 'template' is followed by a destructor name. * g++.dg/template/template-keyword2.C: New test.=