re PR c++/13560 (wrong file name in error message)

2004-10-21  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/13560
        * error.c (cp_error_at): Output the context as it might be
        different file as the other location.

From-SVN: r89382
This commit is contained in:
Andrew Pinski 2004-10-21 16:14:29 +00:00 committed by Andrew Pinski
parent 0844512546
commit 22a49f184a
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
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 <kazu@cs.umass.edu>
* typeck.c: Fix a comment typo.

View File

@ -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);