decl2.c (generate_ctor_or_dtor_function): Tolerate a non-existant ssdf_decls array.
authorMark Mitchell <mark@codesourcery.com>
Fri, 28 Mar 2003 19:30:41 +0000 (19:30 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 28 Mar 2003 19:30:41 +0000 (19:30 +0000)
commit400fbc086860b08dfc220532a0f3b7aad382ce4c
treee5c12c770c62e621116a2a00a3afc04795875cf7
parentbbacb998c8f265fb6d51716eb707c73b07d9ccdf
decl2.c (generate_ctor_or_dtor_function): Tolerate a non-existant ssdf_decls array.

* decl2.c (generate_ctor_or_dtor_function): Tolerate a
non-existant ssdf_decls array.
(finish_file): Call generator_ctor_or_dtor_function when there are
static constructors or destructors and no other static
initializations.

* g++.dg/init/attrib1.C: New test.

From-SVN: r64979
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/attrib1.C [new file with mode: 0644]