diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-08-15 15:43:42 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-08-15 15:43:42 +0000 |
commit | 16f2a716d9132d7624473f0c91d63045f25a7bc9 (patch) | |
tree | 61c7a3e450f8f4d8891ed1e993fc6c3483f72fcf /gnu/usr.bin/gcc/cp/decl2.c | |
parent | 5b8bc6cfc27b80e98588790026b0fe51f3044268 (diff) |
Merge of GCC 2.7.2.1
Diffstat (limited to 'gnu/usr.bin/gcc/cp/decl2.c')
-rw-r--r-- | gnu/usr.bin/gcc/cp/decl2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/usr.bin/gcc/cp/decl2.c b/gnu/usr.bin/gcc/cp/decl2.c index 7a3f7d5e094..9b7f88e2d68 100644 --- a/gnu/usr.bin/gcc/cp/decl2.c +++ b/gnu/usr.bin/gcc/cp/decl2.c @@ -1363,7 +1363,7 @@ grokfield (declarator, declspecs, raises, init, asmspec_tree, attrlist) init = NULL_TREE; value = grokdeclarator (declarator, declspecs, FIELD, init != 0, - raises, attrlist); + raises, NULL_TREE); if (! value) return value; /* friend or constructor went bad. */ @@ -1477,6 +1477,10 @@ grokfield (declarator, declspecs, raises, init, asmspec_tree, attrlist) /* The corresponding pop_obstacks is in cp_finish_decl. */ push_obstacks_nochange (); + if (attrlist) + cplus_decl_attributes (value, TREE_PURPOSE (attrlist), + TREE_VALUE (attrlist)); + if (TREE_CODE (value) == VAR_DECL) { /* We cannot call pushdecl here, because that would |