Commit 4b90314e by Taras Glek Committed by Taras Glek

parser.c (cp_parser_class_specifier): Back out my previous change.

	* parser.c (cp_parser_class_specifier): Back out my previous change.
	* semantics.c (begin_class_definition): Back out my previous change.

From-SVN: r154919
parent a881cad6
2009-12-02 Taras Glek <taras@mozilla.com>
* parser.c (cp_parser_class_specifier): Back out my previous change.
* semantics.c (begin_class_definition): Back out my previous change.
2009-12-02 Paolo Bonzini <bonzini@gnu.org> 2009-12-02 Paolo Bonzini <bonzini@gnu.org>
Shujing Zhao <pearly.zhao@oracle.com> Shujing Zhao <pearly.zhao@oracle.com>
......
...@@ -16376,8 +16376,6 @@ cp_parser_class_head (cp_parser* parser, ...@@ -16376,8 +16376,6 @@ cp_parser_class_head (cp_parser* parser,
end_specialization (); end_specialization ();
--parser->num_template_parameter_lists; --parser->num_template_parameter_lists;
} }
DECL_SOURCE_LOCATION (TYPE_NAME (type)) = type_start_token->location;
*attributes_p = attributes; *attributes_p = attributes;
return type; return type;
} }
......
...@@ -2386,6 +2386,9 @@ begin_class_definition (tree t, tree attributes) ...@@ -2386,6 +2386,9 @@ begin_class_definition (tree t, tree attributes)
pushtag (make_anon_name (), t, /*tag_scope=*/ts_current); pushtag (make_anon_name (), t, /*tag_scope=*/ts_current);
} }
/* Update the location of the decl. */
DECL_SOURCE_LOCATION (TYPE_NAME (t)) = input_location;
if (TYPE_BEING_DEFINED (t)) if (TYPE_BEING_DEFINED (t))
{ {
t = make_class_type (TREE_CODE (t)); t = make_class_type (TREE_CODE (t));
......
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