Commit 7211716d by Jason Merrill Committed by Jason Merrill

parse.y (template_id): do_identifier for PFUNCNAMEs, too.

	* parse.y (template_id): do_identifier for PFUNCNAMEs, too.
	* spew.c (yylex): Don't do_identifier here.
	* decl2.c (build_expr_from_tree): Revert last change.

	* decl2.c (build_expr_from_tree): Expand the name for a method call.
	* parse.y (object_template_id): Don't try to take the DECL_NAME.

From-SVN: r16971
parent f2d76545
Fri Dec 5 01:17:34 1997 Jason Merrill <jason@yorick.cygnus.com>
* parse.y (template_id): do_identifier for PFUNCNAMEs, too.
* spew.c (yylex): Don't do_identifier here.
* decl2.c (build_expr_from_tree): Revert last change.
* decl2.c (build_expr_from_tree): Expand the name for a method call.
* parse.y (object_template_id): Don't try to take the DECL_NAME.
Wed Dec 3 20:02:39 1997 Jason Merrill <jason@yorick.cygnus.com> Wed Dec 3 20:02:39 1997 Jason Merrill <jason@yorick.cygnus.com>
* init.c (build_new): Use a TARGET_EXPR instead of SAVE_EXPR for * init.c (build_new): Use a TARGET_EXPR instead of SAVE_EXPR for
......
...@@ -1295,9 +1295,11 @@ notype_unqualified_id: ...@@ -1295,9 +1295,11 @@ notype_unqualified_id:
template_id: template_id:
PFUNCNAME '<' template_arg_list template_close_bracket PFUNCNAME '<' template_arg_list template_close_bracket
{ $$ = lookup_template_function ($1, $3); } { $$ = lookup_template_function
(do_identifier ($1, 1), $3); }
| PFUNCNAME '<' template_close_bracket | PFUNCNAME '<' template_close_bracket
{ $$ = lookup_template_function ($1, NULL_TREE); } { $$ = lookup_template_function
(do_identifier ($1, 1), NULL_TREE); }
| operator_name '<' template_arg_list template_close_bracket | operator_name '<' template_arg_list template_close_bracket
{ $$ = lookup_template_function { $$ = lookup_template_function
(do_identifier ($1, 1), $3); } (do_identifier ($1, 1), $3); }
...@@ -1310,9 +1312,9 @@ object_template_id: ...@@ -1310,9 +1312,9 @@ object_template_id:
TEMPLATE identifier '<' template_arg_list template_close_bracket TEMPLATE identifier '<' template_arg_list template_close_bracket
{ $$ = lookup_template_function ($2, $4); } { $$ = lookup_template_function ($2, $4); }
| TEMPLATE PFUNCNAME '<' template_arg_list template_close_bracket | TEMPLATE PFUNCNAME '<' template_arg_list template_close_bracket
{ $$ = lookup_template_function (DECL_NAME ($2), $4); } { $$ = lookup_template_function ($2, $4); }
| TEMPLATE operator_name '<' template_arg_list template_close_bracket | TEMPLATE operator_name '<' template_arg_list template_close_bracket
{ $$ = lookup_template_function (DECL_NAME ($2), $4); } { $$ = lookup_template_function ($2, $4); }
; ;
unqualified_id: unqualified_id:
......
...@@ -379,9 +379,6 @@ yylex () ...@@ -379,9 +379,6 @@ yylex ()
debug_yychar (yychar); debug_yychar (yychar);
#endif #endif
if (yychar == PFUNCNAME)
yylval.ttype = do_identifier (yylval.ttype, 1);
return yychar; return yychar;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment