rtti.c (get_vmi_pseudo_type_info): Move __vmi_class_type_info pseudo_type_info creati...
authorAlfred Minarik <a8601248@unet.univie.ac.at>
Sun, 27 Feb 2000 02:52:55 +0000 (03:52 +0100)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 27 Feb 2000 02:52:55 +0000 (02:52 +0000)
* 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
gcc/cp/rtti.c

index b90484fa6b7887f8d8f855392f3bad302bf3da7a..7c73df6934a880678b204ea095cb666336bf8708 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-25  Alfred Minarik <a8601248@unet.univie.ac.at>
+
+       * 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  <mark@codesourcery.com>
 
        * cp-tree.h (DECL_NEEDED_P): Tweak to correct usage before EOF.
index e81ab695fd0c718c6d299b2c82dfee5a959554d8..0896fe22bf14ae197a1cf5b2beb0c69d547e427d 100644 (file)
@@ -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;
 }