re PR c++/65091 (decltype(~arg) fails for template functions)
authorJason Merrill <jason@redhat.com>
Wed, 15 Jul 2015 14:13:22 +0000 (10:13 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 15 Jul 2015 14:13:22 +0000 (10:13 -0400)
commit0467e3ebef7688c50fb0141b10c8b5e7e4dbbcdf
treea9d17a844b4ff1719c689b80372facf14dec2d2a
parent49f88e433367feaed27d29528423bc9fb90a8f72
re PR c++/65091 (decltype(~arg) fails for template functions)

PR c++/65091
* parser.c (cp_parser_unqualified_id): Don't accept ~x in a
template if there is no type x in scope.

From-SVN: r225831
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/parse/dtor17.C [new file with mode: 0644]