aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>1999-09-29 14:59:56 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>1999-09-29 14:59:56 +0000
commit0acbb8d94d6268bff84fb87e6e7e25768b58911f (patch)
treea57e873b0116d19c54fff1737e6076a477254528 /gcc/cp/error.c
parentbea5d553af68dca2f659f39cd7fb234106942f68 (diff)
downloadgcc-0acbb8d94d6268bff84fb87e6e7e25768b58911f.zip
gcc-0acbb8d94d6268bff84fb87e6e7e25768b58911f.tar.gz
gcc-0acbb8d94d6268bff84fb87e6e7e25768b58911f.tar.bz2
error.c (dump_template_parms): Don't use TS_PEDANTIC_NAME to change primary template rendering.
* error.c (dump_template_parms): Don't use TS_PEDANTIC_NAME to change primary template rendering. From-SVN: r29707
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 706c2e6..ddb1ed9 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -1350,28 +1350,6 @@ dump_template_parms (info, primary, flags)
need_comma = 1;
}
}
- else if (flags & TS_PEDANTIC_NAME)
- {
- tree tpl = TI_TEMPLATE (info);
- tree parms = TREE_VALUE (DECL_TEMPLATE_PARMS (tpl));
- int len = TREE_VEC_LENGTH (parms);
- int ix;
-
- for (ix = 0; ix != len; ix++)
- {
- tree parm = TREE_VALUE (TREE_VEC_ELT (parms, ix));
-
- if (ix)
- OB_PUTS (", ");
- if (TREE_CODE (parm) == TYPE_DECL)
- OB_PUTS ("class");
- else if (TREE_CODE (parm) == TEMPLATE_DECL)
- dump_decl (DECL_TEMPLATE_RESULT (parm), flags);
- else
- dump_type (TREE_TYPE (parm),
- flags | TS_TEMPLATE_PARM);
- }
- }
else if (primary)
{
tree tpl = TI_TEMPLATE (info);