summaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-11 07:56:23 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-11 07:56:23 +0000
commit424769d7bcdbaa3435803391463eafd1f9e71245 (patch)
tree195b4f1c5e483097198fa73d23583d4ed1f36e73 /gcc/cp/pt.c
parent186a6efe0608927dff52816dea7ad0af3dd1b759 (diff)
downloadgcc-424769d7bcdbaa3435803391463eafd1f9e71245.tar.gz
2001-07-11 Ben Elliston <bje@redhat.com>
PR c++/80 * decl.c (finish_enum): New "attributes" argument; pass it to cplus_decl_attributes. Use a narrower type if the enum is packed. * cp-tree.h (finish_enum): Adjust prototype. * parse.y (enum_head): New non-terminal. (structsp): Use it. Enums now may be preceded or followed by optional attributes -- pass their chained tree to finish_enum(). * pt.c (tsubst_enum): Pass NULL_TREE for the new argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43929 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 3d6279a8282..9503e3ec13f 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -10149,7 +10149,7 @@ tsubst_enum (tag, newtag, args)
build_enumerator (TREE_PURPOSE (e), value, newtag);
}
- finish_enum (newtag);
+ finish_enum (newtag, NULL_TREE);
DECL_SOURCE_LINE (TYPE_NAME (newtag)) = DECL_SOURCE_LINE (TYPE_NAME (tag));
DECL_SOURCE_FILE (TYPE_NAME (newtag)) = DECL_SOURCE_FILE (TYPE_NAME (tag));
}