From: Jason Merrill Date: Sun, 18 Oct 1998 16:34:26 +0000 (+0000) Subject: * method.c (hack_identifier): Just return a member function. X-Git-Tag: prereleases/egcs-1.1.1-pre~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0d9528b3a2238b10fa5cfa40f582dfd003f3847;p=thirdparty%2Fgcc.git * method.c (hack_identifier): Just return a member function. From-SVN: r23163 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 779d8bbbdd6b..3cc2f8b81186 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +1998-10-18 Jason Merrill + + * method.c (hack_identifier): Just return a member function. + 1998-10-14 Jason Merrill * spew.c (yylex): Clear looking_for_typename if we got diff --git a/gcc/cp/method.c b/gcc/cp/method.c index d718a44920b8..f6af6e98ed3a 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -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 diff --git a/gcc/cp/parse.c b/gcc/cp/parse.c index 05bb917704d5..f0edf7c23326 100644 --- a/gcc/cp/parse.c +++ b/gcc/cp/parse.c @@ -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: