Fix out-of-line definition of class template generic member functions.
authorAdam Butcher <adam@jessamine.co.uk>
Tue, 25 Feb 2014 03:47:35 +0000 (03:47 +0000)
committerAdam Butcher <abutcher@gcc.gnu.org>
Tue, 25 Feb 2014 03:47:35 +0000 (03:47 +0000)
commit1b859733ce1f05552a13d2ed705623f860848559
treec048938442833f3c3eb8ddfe28fd6789749b5a48
parent81493f78875ef6e1714d51cb2f3864689835e0e2
Fix out-of-line definition of class template generic member functions.

* parser.c (synthesize_implicit_template_parm): Inject new template
argument list appropriately when a generic member function
of a class template is declared out-of-line.

* g++.dg/cpp1y/fn-generic-member-ool.C: New testcase.

From-SVN: r208107
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/fn-generic-member-ool.C [new file with mode: 0644]