diff options
author | tglek <tglek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-02 01:00:39 +0000 |
---|---|---|
committer | tglek <tglek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-02 01:00:39 +0000 |
commit | fd1db3e9212f280d8ad99ed3dbaab9be098107da (patch) | |
tree | 9dcfcc8ddcab8a665737a6856820cf2548681ad7 /gcc/cp/parser.c | |
parent | c64a2586cbed05c73a105283d6b1feaf5301f58e (diff) | |
download | gcc-fd1db3e9212f280d8ad99ed3dbaab9be098107da.tar.gz |
* parser.c (cp_parser_class_specifier): Set class location to that of IDENTIFIER_NODE instead of '{' when possible.\n* semantics.c (begin_class_definition): Do not overide locations with less precise ones.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154890 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 5c8dbcb155e..f50d1c0bb8d 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -16388,6 +16388,8 @@ 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; } |