summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-21 16:14:29 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-21 16:14:29 +0000
commitcf88e1c92bed3debd9901e02aaed900d38d126cc (patch)
treeab22bab6638477e07b0e7b45b86a749bed9159f9
parent77aecf4bdbdaddffc6f3f80d609d58707b56d4b7 (diff)
downloadppe42-gcc-cf88e1c92bed3debd9901e02aaed900d38d126cc.tar.gz
ppe42-gcc-cf88e1c92bed3debd9901e02aaed900d38d126cc.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89382 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/error.c3
2 files changed, 9 insertions, 0 deletions
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 <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.
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);
OpenPOWER on IntegriCloud