re PR c++/60311 ([c++1y] ICE with pointer-to-function with auto parameter)
authorAdam Butcher <adam@jessamine.co.uk>
Tue, 25 Feb 2014 06:44:53 +0000 (06:44 +0000)
committerAdam Butcher <abutcher@gcc.gnu.org>
Tue, 25 Feb 2014 06:44:53 +0000 (06:44 +0000)
commitadbdb8c76e9757634a688b093f6567d67b8b2498
treec2838aa8b9eef42ed0aad12b7836de6d2a668112
parent41b2d514d0fc40c9abf744e392e3f7f16fa610aa
re PR c++/60311 ([c++1y] ICE with pointer-to-function with auto parameter)

Fix PR c++/60311.

PR c++/60311
* parser.c (function_being_declared_is_template_p): Return false when
processing a template parameter list.
(cp_parser_parameter_declaration_clause): Don't set
auto_is_implicit_function_template_parm_p when processing a
template parameter list.

PR c++/60311
* g++.dg/cpp1y/pr60311.C: New testcase.

From-SVN: r208111
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr60311.C [new file with mode: 0644]