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/cp-tree.h | |
| 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/cp-tree.h')
| -rw-r--r-- | gcc/cp/cp-tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index c50836b..3c20afe 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -4111,7 +4111,7 @@ extern int template_class_depth (tree); extern int is_specialization_of (tree, tree); extern bool is_specialization_of_friend (tree, tree); extern int comp_template_args (tree, tree); -extern void maybe_process_partial_specialization (tree); +extern tree maybe_process_partial_specialization (tree); extern tree most_specialized_instantiation (tree); extern void print_candidates (tree); extern void instantiate_pending_templates (int); |
