aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/errfn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/errfn.c b/gcc/cp/errfn.c
index d5e7077..761f922 100644
--- a/gcc/cp/errfn.c
+++ b/gcc/cp/errfn.c
@@ -72,6 +72,8 @@ cp_thing (errfn, atarg1, format, ap)
const char *f;
tree atarg = 0;
+ /* We call this here so that the calls to cp_error in
+ print_template_context don't bash buf. */
maybe_print_template_context ();
len = strlen (format) + 1;