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
This commit is contained in:
parent
8417ff635e
commit
c02f5e295f
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue