re PR c++/60185 (ICE with invalid default parameter)
authorJason Merrill <jason@redhat.com>
Fri, 21 Feb 2014 21:53:46 +0000 (16:53 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 21 Feb 2014 21:53:46 +0000 (16:53 -0500)
commitc754ffcc4c79086eb49f534db5d353a8041a9c12
treedde35fbf80b0a34733435c7d1b0254ff6d082c9d
parente7b67047c79d2ea6867ed15b6441960219d77f29
re PR c++/60185 (ICE with invalid default parameter)

PR c++/60185
* parser.c (cp_parser_default_argument): Clear
current_class_ptr/current_class_ref like tsubst_default_argument.

From-SVN: r208029
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/overload/defarg5.C
gcc/testsuite/g++.dg/template/defarg17.C [new file with mode: 0644]