]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* method.c (hack_identifier): Just return a member function.
authorJason Merrill <jason@yorick.cygnus.com>
Sun, 18 Oct 1998 16:34:26 +0000 (16:34 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 18 Oct 1998 16:34:26 +0000 (12:34 -0400)
From-SVN: r23163

gcc/cp/ChangeLog
gcc/cp/method.c
gcc/cp/parse.c

index 779d8bbbdd6b5392b847004f13da85cbada72273..3cc2f8b81186ae35431d0e87131a4c7afa2e00ac 100644 (file)
@@ -1,3 +1,7 @@
+1998-10-18  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * method.c (hack_identifier): Just return a member function.
+
 1998-10-14  Jason Merrill  <jason@yorick.cygnus.com>
 
        * spew.c (yylex): Clear looking_for_typename if we got
index d718a44920b80788cb8938cb0b088702d91f823f..f6af6e98ed3a24d398371ca45de320a8fe95045c 100644 (file)
@@ -1862,6 +1862,10 @@ hack_identifier (value, name)
       TREE_USED (value) = 1;
       value = build_component_ref (current_class_ref, name, NULL_TREE, 1);
     }
+  else if (TREE_CODE (value) == FUNCTION_DECL
+          && DECL_FUNCTION_MEMBER_P (value))
+    /* This is a placeholder; don't mark it used.  */
+    return value;
   else if (really_overloaded_fn (value))
     {
 #if 0
index 05bb917704d58113e7b52f9cfcd326f4e905bfae..f0edf7c233264f716374b13e608303423a17ace1 100644 (file)
@@ -5712,7 +5712,7 @@ case 408:
 case 409:
 #line 1885 "parse.y"
 { /* Set things up as initdcl0_innards expects.  */
-             yyval.ttype = yyvsp[-1].ttype; 
+             yyvsp[0].ttype = yyvsp[-1].ttype; 
               yyvsp[-1].ttype = NULL_TREE; ;
     break;}
 case 410: