aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/pt.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 9fd36c9..587ce8e 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-18 Jason Merrill <jason@redhat.com>
+
+ * pt.c (do_type_instantiation): Don't pedwarn if in_system_header.
+ (do_decl_instantiation): Likewise.
+
2002-02-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR c++/5685
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index d963a79..4a57dd3 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -9502,7 +9502,7 @@ do_decl_instantiation (declspecs, declarator, storage)
;
else if (storage == ridpointers[(int) RID_EXTERN])
{
- if (pedantic)
+ if (pedantic && !in_system_header)
pedwarn ("ISO C++ forbids the use of `extern' on explicit instantiations");
extern_p = 1;
}
@@ -9573,7 +9573,7 @@ do_type_instantiation (t, storage, complain)
if (storage != NULL_TREE)
{
- if (pedantic)
+ if (pedantic && !in_system_header)
pedwarn("ISO C++ forbids the use of `%s' on explicit instantiations",
IDENTIFIER_POINTER (storage));