]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/cp-tree.def
re PR c++/20145 (template "class has virtual functions ... " is not suppressed with...
authorMark Mitchell <mark@codesourcery.com>
Fri, 8 Apr 2005 19:39:59 +0000 (19:39 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 8 Apr 2005 19:39:59 +0000 (19:39 +0000)
commit12af7ba340f80ef1222034ebe0ce88a4130a0462
tree7269b44542fb5a413a12a9ea81b3d385f85036dc
parent01d87b6f3da40f38bfda6a538316fb8e6ce9a888
re PR c++/20145 (template "class has virtual functions ... " is not suppressed with -isystem)

* cp-tree.def (TINST_LEVEL): Document TINST_IN_SYSTEM_HEADER_P.
* cp-tree.h (struct tinst_level): Add in_system_header_p.
(TINST_IN_SYSTEM_HEADER_P): New macro.
(make_tinst_level): Remove.
* pt.c (lookup_template_class): Preserve DECL_IN_SYSTEM_HEADER on
the instantiated class.
(push_tinst_level): Do not use make_tinst_level.  Set
TINST_IN_SYSTEM_HEADER_P.
(pop_tinst_level): Likewise.
(instantiate_class_template): Set in_system_header.
(instantiate_pending_templates): Likewise.
* tree.c (make_tinst_level): Remove.

PR c++/20145
* g++.dg/warn/Wdtor1.C: New test.

From-SVN: r97854
gcc/cp/ChangeLog
gcc/cp/cp-tree.def
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wdtor1.C [new file with mode: 0644]
This page took 0.053683 seconds and 5 git commands to generate.