aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2002-02-17 22:15:44 -0500
committerJason Merrill <jason@gcc.gnu.org>2002-02-17 22:15:44 -0500
commitc02f5e295fc748655976cfc2ba98fc9660fd1a5c (patch)
treef7028197dbfbb7c6e2e55d4e5b5ef78e08e353d3 /gcc
parent8417ff635e1dd5c74f8407f4e8ebdc33457bebd9 (diff)
downloadgcc-c02f5e295fc748655976cfc2ba98fc9660fd1a5c.zip
gcc-c02f5e295fc748655976cfc2ba98fc9660fd1a5c.tar.gz
gcc-c02f5e295fc748655976cfc2ba98fc9660fd1a5c.tar.bz2
pt.c (do_type_instantiation): Don't pedwarn if in_system_header.
* pt.c (do_type_instantiation): Don't pedwarn if in_system_header. (do_decl_instantiation): Likewise. From-SVN: r49832
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));