Commit c02f5e29 by Jason Merrill Committed by Jason Merrill

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
parent 8417ff63
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> 2002-02-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR c++/5685 PR c++/5685
......
...@@ -9502,7 +9502,7 @@ do_decl_instantiation (declspecs, declarator, storage) ...@@ -9502,7 +9502,7 @@ do_decl_instantiation (declspecs, declarator, storage)
; ;
else if (storage == ridpointers[(int) RID_EXTERN]) 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"); pedwarn ("ISO C++ forbids the use of `extern' on explicit instantiations");
extern_p = 1; extern_p = 1;
} }
...@@ -9573,7 +9573,7 @@ do_type_instantiation (t, storage, complain) ...@@ -9573,7 +9573,7 @@ do_type_instantiation (t, storage, complain)
if (storage != NULL_TREE) if (storage != NULL_TREE)
{ {
if (pedantic) if (pedantic && !in_system_header)
pedwarn("ISO C++ forbids the use of `%s' on explicit instantiations", pedwarn("ISO C++ forbids the use of `%s' on explicit instantiations",
IDENTIFIER_POINTER (storage)); IDENTIFIER_POINTER (storage));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment