Support decl instantiation in function-local templates.
authorAdam Butcher <adam@jessamine.co.uk>
Thu, 12 Sep 2013 18:54:42 +0000 (19:54 +0100)
committerAdam Butcher <abutcher@gcc.gnu.org>
Thu, 12 Sep 2013 18:54:42 +0000 (19:54 +0100)
commit1c1880fcc6ca93f7ac589122448b605f4a3617af
treea6f6b2c23f5262d18787189b8876f20b0297dd79
parent84f6d9fa3de366017eafa07730e2ee9a1886f3d7
Support decl instantiation in function-local templates.

* pt.c (instantiate_decl): Save/restore cp_unevaluated_operand and
c_inhibit_evaluation_warnings.  Reset if instantiating within a
function-local template.

From-SVN: r202538
gcc/cp/ChangeLog
gcc/cp/pt.c