decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class TYPE_DECLs.

* decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
	TYPE_DECLs.

From-SVN: r35779
This commit is contained in:
Nathan Sidwell 2000-08-18 09:49:06 +00:00 committed by Nathan Sidwell
parent 8e4f1b30f4
commit 7a8b13758c
2 changed files with 8 additions and 0 deletions

View 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> 2000-08-18 Nathan Sidwell <nathan@codesourcery.com>
* cp-tree.h (PTRMEM_OK_P): New macro. * cp-tree.h (PTRMEM_OK_P): New macro.

View File

@ -1710,6 +1710,9 @@ grokfield (declarator, declspecs, init, asmspec_tree, attrlist)
DECL_NONLOCAL (value) = 1; DECL_NONLOCAL (value) = 1;
DECL_CONTEXT (value) = current_class_type; 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 /* Now that we've updated the context, we need to remangle the
name for this TYPE_DECL. */ name for this TYPE_DECL. */
DECL_ASSEMBLER_NAME (value) = DECL_NAME (value); DECL_ASSEMBLER_NAME (value) = DECL_NAME (value);