decl.c (struct cp_function): Add named_label_uses.
authorJason Merrill <jason@yorick.cygnus.com>
Sun, 15 Nov 1998 19:24:43 +0000 (19:24 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 15 Nov 1998 19:24:43 +0000 (14:24 -0500)
commit5524676df831f5ffd3f42b74259b39824c9d4471
treed52e9ad4f9e03949fb8a6ac2190c3669dde51a01
parent233363cbb17a40fb813d4aaf2f5a349c7237af28
decl.c (struct cp_function): Add named_label_uses.

* decl.c (struct cp_function): Add named_label_uses.
(push_cp_function_context): Save it.
(pop_cp_function_context): Restore it.
(define_label): Also complain about jumping into the scope of
non-POD objects that don't have constructors.
* tree.c (pod_type_p): New fn.
Fixes g++.other/init9.C
* pt.c (instantiate_class_template): Clear TYPE_BEING_DEFINED sooner.
* rtti.c (synthesize_tinfo_fn): Call import_export_decl here.
(get_tinfo_fn): Not here.
* repo.c (repo_get_id): Abort if we get called for an incomplete
type.
Fixes g++.pt/instantiate4.C

From-SVN: r23667
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/cp/repo.c
gcc/cp/rtti.c
gcc/cp/tree.c