diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-18 15:44:36 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-18 15:44:36 +0000 |
commit | 2806ee49f2b72c642ed1da9cbd1c53e4e0c08eb5 (patch) | |
tree | 7a30e58e91902a07435d0df3f33afcd8eeeddc4e /gcc/cp/decl2.c | |
parent | 3983e6c754ffb5702c81e8758cd66111dab3c2a6 (diff) | |
download | gcc-2806ee49f2b72c642ed1da9cbd1c53e4e0c08eb5.tar.gz |
PR c++/22263
* cp-tree.h (instantiate_decl): Change prototype.
* decl2.c (mark_used): Adjust accordingly.
* pt.c (do_decl_instantiation): Likewise.
(instantiate_class_member): Likewise.
(instantiate_decl): Rename undefined_ok as expl_inst_class_mem_p.
Clear DECL_INTERFACE_KNOWN for an explicitly instantiated template
that has no definition available.
(instantiate_pending_templates): Adjust call to instantiate_decl.
PR c++/22263
* g++.dg/template/explicit7.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102133 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 22166e8b398..5afcd896cc1 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -3278,7 +3278,8 @@ mark_used (tree decl) times. Maintaining a stack of active functions is expensive, and the inliner knows to instantiate any functions it might need. */ - instantiate_decl (decl, /*defer_ok=*/true, /*undefined_ok=*/0); + instantiate_decl (decl, /*defer_ok=*/true, + /*expl_inst_class_mem_p=*/false); } #include "gt-cp-decl2.h" |