aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-05-27 20:03:20 +0000
committerJason Merrill <jason@redhat.com>2010-05-27 20:03:20 +0000
commit995760a7da64a03390fa275fde520296c101307f (patch)
tree0d2c9ed6b416fafb52298572b5e3751ea43059f8 /gcc/cp/decl.c
parent1d7f5d33103c5e13d30f02494ec681eefae25d86 (diff)
Allow compilation with GCC 4.4.gcc-3_0-branch
include/ * obstack.h: Update to GCC 3.3 version. gcc/cp/ * decl.c (current_binding_level): Add *&. * parse.y (constructor_declarator): Fix for bison pedantry. (nomods_initdcl0): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-3_0-branch@159946 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index a42dd455ba3..6c9f9244669 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -478,9 +478,9 @@ struct binding_level
/* The binding level currently in effect. */
#define current_binding_level \
- (cfun && cp_function_chain->bindings \
- ? cp_function_chain->bindings \
- : scope_chain->bindings)
+ (*(cfun && cp_function_chain->bindings \
+ ? &cp_function_chain->bindings \
+ : &scope_chain->bindings))
/* The binding level of the current class, if any. */