decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class TYPE_DECLs.
authorNathan Sidwell <nathan@codesourcery.com>
Fri, 18 Aug 2000 09:49:06 +0000 (09:49 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 18 Aug 2000 09:49:06 +0000 (09:49 +0000)
* decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
TYPE_DECLs.

From-SVN: r35779

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

index 35a206768876b581781679457d8ae9fc4b00b1bc..16a8806729f371b19e7fb3e9687e3f0dce739071 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 677d3bebcc296ff7ce415d4933283a482ba85a70..c45a272f76438a29326ef6dbc73ffa4d0106956c 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);