diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2006-05-06 00:44:29 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2006-05-06 00:44:29 +0000 |
commit | a14de1afcc568a7776ab2845f868d75f12fa1cfb (patch) | |
tree | c9f2831a43d0dd5be9299bfe660df7d79f9b6836 /gcc | |
parent | 620188c9f20847558d91a0fa3be1c04f31e8d646 (diff) | |
download | gcc-a14de1afcc568a7776ab2845f868d75f12fa1cfb.zip gcc-a14de1afcc568a7776ab2845f868d75f12fa1cfb.tar.gz gcc-a14de1afcc568a7776ab2845f868d75f12fa1cfb.tar.bz2 |
* pt.c (process_template_parm): Remove superfluous temporary.
From-SVN: r113573
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/cp/pt.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2fcb893..4f460a3 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2006-05-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de> + * pt.c (process_template_parm): Remove superfluous temporary. + PR c++/27430 * pt.c (process_template_parm): Handle erroneous non-type parameters. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 614de41..c7d94f1 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -2312,19 +2312,17 @@ reduce_template_parm_level (tree index, tree type, int levels) return TEMPLATE_PARM_DESCENDANTS (index); } -/* Process information from new template parameter NEXT and append it to the +/* Process information from new template parameter PARM and append it to the LIST being built. This new parameter is a non-type parameter iff IS_NON_TYPE is true. */ tree -process_template_parm (tree list, tree next, bool is_non_type) +process_template_parm (tree list, tree parm, bool is_non_type) { - tree parm; tree decl = 0; tree defval; int idx; - parm = next; gcc_assert (TREE_CODE (parm) == TREE_LIST); defval = TREE_PURPOSE (parm); |