2001-07-11 Ben Elliston <bje@redhat.com>
commit424769d7bcdbaa3435803391463eafd1f9e71245
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jul 2001 07:56:23 +0000 (11 07:56 +0000)
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jul 2001 07:56:23 +0000 (11 07:56 +0000)
tree195b4f1c5e483097198fa73d23583d4ed1f36e73
parent186a6efe0608927dff52816dea7ad0af3dd1b759
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
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/parse.y
gcc/cp/pt.c