OSDN Git Service

* decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Aug 2000 09:49:06 +0000 (09:49 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Aug 2000 09:49:06 +0000 (09:49 +0000)
TYPE_DECLs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35779 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 35a2067..16a8806 100644 (file)
@@ -1,5 +1,10 @@
 2000-08-18  Nathan Sidwell  <nathan@codesourcery.com>
 
+       * decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
+       TYPE_DECLs.
+
+2000-08-18  Nathan Sidwell  <nathan@codesourcery.com>
+
        * cp-tree.h (PTRMEM_OK_P): New macro.
        (itf_ptrmem_ok): New enumeration value.
        * class.c (resolve_address_of_overloaded_function): Add PTRMEM
index 677d3be..c45a272 100644 (file)
@@ -1710,6 +1710,9 @@ grokfield (declarator, declspecs, init, asmspec_tree, attrlist)
       DECL_NONLOCAL (value) = 1;
       DECL_CONTEXT (value) = current_class_type;
 
+      if (CLASS_TYPE_P (TREE_TYPE (value)))
+        CLASSTYPE_GOT_SEMICOLON (TREE_TYPE (value)) = 1;
+      
       /* Now that we've updated the context, we need to remangle the
         name for this TYPE_DECL.  */
       DECL_ASSEMBLER_NAME (value) = DECL_NAME (value);