ntp1.C
396 Bytes
-
re PR c++/35 (template operator () lookup fails) · 833aa4c4
cp: PR c++/35 * cp-tree.h (DECL_LANG_FLAG_0): Used for PARM_DECL too. (DECL_TEMPLATE_PARM_P): A PARM_DECL might be one too. * pt.c (process_template_parm): SET_DECL_TEMPLATE_PARM_P on the PARM_DECL. (tsubst_template_parms): Break up loop statements. (tsubst_decl, case PARM_DECL): Copy DECL_TEMPLATE_PARM_P. Template parm PARM_DECLs don't get promoted. testsuite: * g++.dg/template/ntp.C: New test. From-SVN: r48470
Nathan Sidwell committed