This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]