diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 291e1738fe8..3adc303036d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2004-10-21 Andrew Pinski + + PR c++/13560 + * error.c (cp_error_at): Output the context as it might be + different file as the other location. + 2004-10-21 Kazu Hirata * typeck.c: Fix a comment typo. 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 @@ -2395,6 +2395,9 @@ cp_error_at (const char *msgid, ...) va_end (ap); 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);