diff options
| author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2006-08-28 22:34:55 +0000 |
|---|---|---|
| committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2006-08-28 22:34:55 +0000 |
| commit | 9ce387d9cfcf19b04ca6e95d3c16e44cdf31f01c (patch) | |
| tree | ab647b9e6bbd47a98a10082b10f51c8bcbec667d /gcc/cp/parser.c | |
| parent | f414f2f35e4cb2f18f2da8f28777ad797cf7b0fa (diff) | |
| download | gcc-9ce387d9cfcf19b04ca6e95d3c16e44cdf31f01c.zip gcc-9ce387d9cfcf19b04ca6e95d3c16e44cdf31f01c.tar.gz gcc-9ce387d9cfcf19b04ca6e95d3c16e44cdf31f01c.tar.bz2 | |
re PR c++/28860 (Trouble with bound template template parameter in specialization)
PR c++/28860
* cp-tree.h (maybe_process_partial_specialization): Return
tree instead of void.
* parser.c (cp_parser_class_head): Use return value of
maybe_process_partial_specialization.
* pt.c (maybe_process_partial_specialization): Return error_mark_node
for broken specializations, TYPE otherwise. Check for template
template parameters.
* g++.dg/template/ttp22.C: New test.
From-SVN: r116541
Diffstat (limited to 'gcc/cp/parser.c')
| -rw-r--r-- | gcc/cp/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index a97518a..5271113 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -13287,7 +13287,7 @@ cp_parser_class_head (cp_parser* parser, if (template_id_p) { type = TREE_TYPE (id); - maybe_process_partial_specialization (type); + type = maybe_process_partial_specialization (type); if (nested_name_specifier) pushed_scope = push_scope (nested_name_specifier); } |
