]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* parse.y (constructor_declarator): Fix for bison pedantry. releases/gcc-3.3
authorJason Merrill <jason@redhat.com>
Thu, 27 May 2010 17:52:50 +0000 (13:52 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 27 May 2010 17:52:50 +0000 (13:52 -0400)
From-SVN: r159936

gcc/cp/ChangeLog
gcc/cp/parse.y

index d65dc1395149ed0145fb004a369628229fe7b3d7..f692c018792b86481898ba61b5fc788130788ee0 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-27  Jason Merrill  <jason@redhat.com>
+
+       * parse.y (constructor_declarator): Fix for bison pedantry.
+
 2005-05-03  Release Manager
 
        * GCC 3.3.6 Released.
index 157a210355a96d57c5194720b06dc735bafbb2c4..65b294a9f4fae8313a2563b88532d70f9ed55527 100644 (file)
@@ -821,7 +821,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
@@ -829,7 +829,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
@@ -837,7 +837,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
@@ -845,7 +845,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