aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2011-11-20 22:37:54 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2011-11-20 22:37:54 +0000
commitfcb13a10e4053a9d6426093b9c733634339a022f (patch)
tree23e25716ad6ee1f32e6e1c034f6d8c096553e990 /gcc/cp/error.c
parentfd9ee5972eb7ceb1e8da07b854431f1c7375ef53 (diff)
downloadgcc-fcb13a10e4053a9d6426093b9c733634339a022f.zip
gcc-fcb13a10e4053a9d6426093b9c733634339a022f.tar.gz
gcc-fcb13a10e4053a9d6426093b9c733634339a022f.tar.bz2
re PR c++/51230 (Broken diagnostic: 'template_parm_index' not supported by dump_type)
/cp 2011-11-20 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51230 * pt.c (unify_inconsistency): Handle non-type parameters better. * error.c (dump_expr): Handle TEMPLATE_TEMPLATE_PARM. /cp 2011-11-20 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51230 * g++.dg/template/error46.C: New. From-SVN: r181538
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 602cb75..4940a78 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -2406,6 +2406,7 @@ dump_expr (tree t, int flags)
break;
case TEMPLATE_TYPE_PARM:
+ case TEMPLATE_TEMPLATE_PARM:
case BOUND_TEMPLATE_TEMPLATE_PARM:
dump_type (t, flags);
break;