]> gcc.gnu.org Git - gcc.git/commit
re PR c++/35 (template operator () lookup fails)
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 2 Jan 2002 12:50:11 +0000 (12:50 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 2 Jan 2002 12:50:11 +0000 (12:50 +0000)
commit833aa4c4149ce0fa84968a03fe51a13575381d79
tree9eda4828ff2460753b02042e25caf1b141568068
parent18976b21446cfafe728b739b7220fd02f4ea5328
re PR c++/35 (template operator () lookup fails)

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
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/ntp1.C [new file with mode: 0644]
This page took 0.056749 seconds and 5 git commands to generate.