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:
parent
0844512546
commit
22a49f184a
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user