This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Reimplementation of error.c
Nathan Sidwell wrote:
>
> Jason Merrill wrote:
> > I think that should still be X<T>. X<class> is invalid syntax, and thus
> > seems an odd choice for "pedantic".
> ... I'll remove it.
I installed the attached, which removes the bogus interpretation of
TS_PEDANTIC_NAME here.
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
I have seen the death of PhotoShop -- it is called GIMP
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk
1999-09-29 Nathan Sidwell <nathan@acm.org>
* error.c (dump_template_parms): Don't use TS_PEDANTIC_NAME
to change primary template rendering.
Index: cp/error.c
===================================================================
RCS file: /cvs/egcs/egcs/gcc/cp/error.c,v
retrieving revision 1.92
diff -c -3 -p -r1.92 error.c
*** error.c 1999/09/29 01:10:44 1.92
--- error.c 1999/09/29 14:56:20
*************** dump_template_parms (info, primary, flag
*** 1350,1377 ****
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);
--- 1350,1355 ----