From: tglek Date: Wed, 2 Dec 2009 17:50:41 +0000 (+0000) Subject: * parser.c (cp_parser_class_specifier): Back out my previous change. X-Git-Url: http://git.sourceforge.jp/view?a=commitdiff_plain;h=0baee55df687806e7cfa915d058855f66d534712;p=pf3gnuchains%2Fgcc-fork.git * parser.c (cp_parser_class_specifier): Back out my previous change. * semantics.c (begin_class_definition): Back out my previous change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154919 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5cacf21468c..84ce5a5a643 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2009-12-02 Taras Glek + + * 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 Shujing Zhao diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index b74f4f23c67..f65dda48cc7 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -16376,8 +16376,6 @@ cp_parser_class_head (cp_parser* parser, end_specialization (); --parser->num_template_parameter_lists; } - - DECL_SOURCE_LOCATION (TYPE_NAME (type)) = type_start_token->location; *attributes_p = attributes; return type; } diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index b3821087ac7..4c3628034b3 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2386,6 +2386,9 @@ begin_class_definition (tree t, tree attributes) 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)) { t = make_class_type (TREE_CODE (t));