* pt.c (do_type_instantiation): Don't pedwarn if in_system_header.
(do_decl_instantiation): Likewise.
From-SVN: r49832
+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
;
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;
}
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));