This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/65091] decltype(~arg) fails for template functions
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Jul 2015 14:13:54 +0000
- Subject: [Bug c++/65091] decltype(~arg) fails for template functions
- Auto-submitted: auto-generated
- References: <bug-65091-4 at http dot gcc dot gnu dot org/bugzilla/>
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