From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B1768385E006; Thu, 26 Mar 2020 01:26:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B1768385E006 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585186017; bh=z/24cIW5u46iUIJMKlGY8+Tg7RGgMh0CClDZ0ZGeF4s=; h=From:To:Subject:Date:From; b=YLwNIOYiO/1ciWgHBZxCvNMBtYAYUAGCxSAE1sGwzfw6W97NyussqccUVPYZfv1fJ B+oLYkmta7HAhagl0J4KXMp6USWnrp7uWB27jVeo5gey4OXK8W9/UUFdV+logwFFK+ 8k8ngKBVTH/6qhF9eKpwqp6mUPqau/ZlvjcDBViU= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94336] New: template keyword accepted before destructor names Date: Thu, 26 Mar 2020 01:26:57 +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: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org 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 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: Thu, 26 Mar 2020 01:26:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94336 Bug ID: 94336 Summary: template keyword accepted before destructor names Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- We accept the following: template void f(T *p) { p->template ~X(); } template struct X {}; void g(X *p) { f(p); } but arguably we shouldn't because [temp.names]/5: A name prefixed by the keyword template shall be a template-id or the name shall refer to a class template or an alias template.=