aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parse.y
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-05-27 18:21:31 +0000
committerJason Merrill <jason@redhat.com>2010-05-27 18:21:31 +0000
commit7166ee8b622ce38f7f1db70a044b121e0cef27c0 (patch)
treefa8344e013d4316ebadbfc12c7251e115a22b983 /gcc/cp/parse.y
parentf5e97d99d162740fc965aef3516ddd90adaa9ce8 (diff)
Allow compilation with GCC 4.4.gcc-3_2-branch
include/ * obstack.h: Update to GCC 3.3 version. gcc/ * system.h: Don't poison malloc. gcc/cp/ * decl.c (current_binding_level): Add *&. * parse.y (constructor_declarator): Fix for bison pedantry. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-3_2-branch@159937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/parse.y')
-rw-r--r--gcc/cp/parse.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y
index e929ebe9494..5c69c58e90f 100644
--- a/gcc/cp/parse.y
+++ b/gcc/cp/parse.y
@@ -799,7 +799,7 @@ fndef:
constructor_declarator:
nested_name_specifier SELFNAME '('
- { $$ = begin_constructor_declarator ($1, $2); }
+ { $<ttype>$ = begin_constructor_declarator ($1, $2); }
parmlist ')' cv_qualifiers exception_specification_opt
{ $$ = make_call_declarator ($<ttype>4, $5, $7, $8); }
| nested_name_specifier SELFNAME LEFT_RIGHT cv_qualifiers exception_specification_opt
@@ -807,7 +807,7 @@ constructor_declarator:
$$ = make_call_declarator ($$, empty_parms (), $4, $5);
}
| global_scope nested_name_specifier SELFNAME '('
- { $$ = begin_constructor_declarator ($2, $3); }
+ { $<ttype>$ = begin_constructor_declarator ($2, $3); }
parmlist ')' cv_qualifiers exception_specification_opt
{ $$ = make_call_declarator ($<ttype>5, $6, $8, $9); }
| global_scope nested_name_specifier SELFNAME LEFT_RIGHT cv_qualifiers exception_specification_opt
@@ -815,7 +815,7 @@ constructor_declarator:
$$ = make_call_declarator ($$, empty_parms (), $5, $6);
}
| nested_name_specifier self_template_type '('
- { $$ = begin_constructor_declarator ($1, $2); }
+ { $<ttype>$ = begin_constructor_declarator ($1, $2); }
parmlist ')' cv_qualifiers exception_specification_opt
{ $$ = make_call_declarator ($<ttype>4, $5, $7, $8); }
| nested_name_specifier self_template_type LEFT_RIGHT cv_qualifiers exception_specification_opt
@@ -823,7 +823,7 @@ constructor_declarator:
$$ = make_call_declarator ($$, empty_parms (), $4, $5);
}
| global_scope nested_name_specifier self_template_type '('
- { $$ = begin_constructor_declarator ($2, $3); }
+ { $<ttype>$ = begin_constructor_declarator ($2, $3); }
parmlist ')' cv_qualifiers exception_specification_opt
{ $$ = make_call_declarator ($<ttype>5, $6, $8, $9); }
| global_scope nested_name_specifier self_template_type LEFT_RIGHT cv_qualifiers exception_specification_opt