aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorBen Elliston <bje@redhat.com>2001-07-11 07:56:23 +0000
committerBen Elliston <bje@gcc.gnu.org>2001-07-11 17:56:23 +1000
commit517c3b80599a3124852717bfb6611813b8f5738b (patch)
tree195b4f1c5e483097198fa73d23583d4ed1f36e73 /gcc/cp/pt.c
parent6fbce318c30ee5eade1645dad4770d25d22a0346 (diff)
downloadgcc-517c3b80599a3124852717bfb6611813b8f5738b.zip
gcc-517c3b80599a3124852717bfb6611813b8f5738b.tar.gz
gcc-517c3b80599a3124852717bfb6611813b8f5738b.tar.bz2
re PR c++/80 (g++ enum and attributed __packed__)
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. From-SVN: r43929
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 3d6279a..9503e3e 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));
}