summaryrefslogtreecommitdiff
path: root/gcc/toplev.h
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2008-08-06 16:37:06 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2008-08-06 16:37:06 +0000
commit2ba27e7e2ac610acdbb43ce5a91101bfedebe23f (patch)
tree783902cef32fa8d98d51a37c7d2c4cc393628f93 /gcc/toplev.h
parent2266cc2fd98d73defc4573962b855c664a18f2ac (diff)
downloadgcc-2ba27e7e2ac610acdbb43ce5a91101bfedebe23f.tar.gz
2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR 26785 * diagnostic.c (permerror_at): New. * toplev.h (permerror_at): Declare. cp/ * decl.c (grokdeclarator): Use explicit location with permerror_at. testsuite/ * g++.dg/warn/pr26785.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138816 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r--gcc/toplev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h
index f1e4fe500f6..1a015e69e0e 100644
--- a/gcc/toplev.h
+++ b/gcc/toplev.h
@@ -68,6 +68,8 @@ extern void pedwarn0 (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
/* Pass one of the OPT_W* from options.h as the first parameter. */
extern void pedwarn (int, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
extern void permerror (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
+extern void permerror_at (location_t, const char *, ...)
+ ATTRIBUTE_GCC_DIAG(2,3);
extern void sorry (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
extern void inform (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
extern void verbatim (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);