https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65091
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed Jul 15 14:13:22 2015 New Revision: 225831 URL: https://gcc.gnu.org/viewcvs?rev=225831&root=gcc&view=rev Log: PR c++/65091 * parser.c (cp_parser_unqualified_id): Don't accept ~x in a template if there is no type x in scope. Added: trunk/gcc/testsuite/g++.dg/parse/dtor17.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c