diff options
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index af973d60a2c..9f79a26253c 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -2396,6 +2396,9 @@ cp_error_at (const char *msgid, ...) va_start (ap, msgid); diagnostic_set_info (&diagnostic, msgid, &ap, + input_location, DK_ERROR); + cp_diagnostic_starter (global_dc, &diagnostic); + diagnostic_set_info (&diagnostic, msgid, &ap, location_of (here), DK_ERROR); report_diagnostic (&diagnostic); va_end (ap); |