From 4278955754174d9c305a87d1e6bf43a1eed25618 Mon Sep 17 00:00:00 2001 From: Alfred Minarik Date: Sun, 27 Feb 2000 03:52:55 +0100 Subject: [PATCH] rtti.c (get_vmi_pseudo_type_info): Move __vmi_class_type_info pseudo_type_info creation into the std namespace * rtti.c (get_vmi_pseudo_type_info): Move __vmi_class_type_info pseudo_type_info creation into the std namespace From-SVN: r32209 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/rtti.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b90484fa6b7..7c73df6934a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2000-02-25 Alfred Minarik + + * rtti.c (get_vmi_pseudo_type_info): Move __vmi_class_type_info + pseudo_type_info creation into the std namespace + 2000-02-26 Mark Mitchell * cp-tree.h (DECL_NEEDED_P): Tweak to correct usage before EOF. diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index e81ab695fd0..0896fe22bf1 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -1734,12 +1734,19 @@ get_vmi_pseudo_type_info (num_bases) array_domain = build_index_type (build_int_2 (num_bases, 0)); base_array = build_array_type (base_desc_type_node, array_domain); + if (flag_honor_std) + push_namespace (get_identifier ("std")); + desc = create_pseudo_type_info ("__vmi_class_type_info", num_bases, build_lang_decl (FIELD_DECL, NULL_TREE, integer_type_node), build_lang_decl (FIELD_DECL, NULL_TREE, integer_type_node), build_lang_decl (FIELD_DECL, NULL_TREE, base_array), NULL); + + if (flag_honor_std) + pop_namespace (); + TREE_VEC_ELT (vmi_class_desc_type_node, num_bases) = desc; return desc; } -- 2.30.2