]> gcc.gnu.org Git - gcc.git/commit
re PR c++/60390 ([c++1y] ICE with declaring function with auto parameter as friend)
authorAdam Butcher <adam@jessamine.co.uk>
Mon, 17 Mar 2014 20:02:26 +0000 (20:02 +0000)
committerAdam Butcher <abutcher@gcc.gnu.org>
Mon, 17 Mar 2014 20:02:26 +0000 (20:02 +0000)
commite0672441623392903e5cc34bc22116bbd01dfeb2
tree5450646a5e8452e3dfb7f016d866c6aa8a69e4f0
parentc66f2ba1ba6bf0b3ca6b092ee964461d6c7bb93f
re PR c++/60390 ([c++1y] ICE with declaring function with auto parameter as friend)

Fix PR c++/60390

PR c++/60390
* parser.c (cp_parser_member_declaration): Don't allow
finish_fully_implicit_template to consider friend declarations to be
class member templates.
(synthesize_implicit_template_parm): Handling winding back through class
scope to the class being defined in order to inject a template argument
list.

PR c++/60390
* g++.dg/cpp1y/pr60390.C: New testcase.

From-SVN: r208625
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr60390.C [new file with mode: 0644]
This page took 0.054096 seconds and 5 git commands to generate.