From 7a8b13758c2aae969df699edefa46502a24423de Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Fri, 18 Aug 2000 09:49:06 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl2.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 35a20676887..16a8806729f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2000-08-18 Nathan Sidwell + + * decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class + TYPE_DECLs. + 2000-08-18 Nathan Sidwell * cp-tree.h (PTRMEM_OK_P): New macro. diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 677d3bebcc2..c45a272f764 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -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); -- 2.30.2