PR c++/23699
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 3 Sep 2005 18:18:48 +0000 (18:18 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 3 Sep 2005 18:18:48 +0000 (18:18 +0000)
commitdd63dd9059200fece499159151c2905d220d88c1
treece48d74b7c9e2e53dacefc8aad93e808cce4796a
parented4989045e76c1119400d4e712b7130ddbe3d577
PR c++/23699
* decl2.c (mark_used): Always instantiate static data members
initialized by constant expressions.
* pt.c (instantiate_decl): Instantiate the initializers for static
data members initialized by constant expressions.

PR c++/21687
* semantics.c (expand_or_defer_fn): Do not call ggc_collect when
finishing processing for a template function in a local class.
Revert:
2005-09-02  Mark Mitchell  <mark@codesourcery.com>
* parser.c (cp_parser_class_specifier): Push/pop GC contexts
around functions in local classes.

PR c++/23699
* g++.dg/ext/static1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103806 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/static1.C [new file with mode: 0644]