[Bug c++/65091] decltype(~arg) fails for template functions

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 15 14:13:00 GMT 2015


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



More information about the Gcc-bugs mailing list