2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
[official-gcc.git] / gcc / cp / ChangeLog
blob5088ba06f716d62de6ff6037642b65c081ba602e
1 2011-01-12  Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
3         * cp-tree.h (begin_for_scope): New prototype.
4         (begin_for_stmt): Update prototype.
5         (begin_range_for_stmt): Update prototype.
6         * init.c (build_vec_init): Update call to begin_for_stmt.
7         * parser.c (cp_parser_for): New.
8         (cp_parser_c_for): Add three new parameters.
9         (cp_parser_range_for): Likewise. Most parsing code removed.
10         (cp_parser_iteration_statement): Call cp_parser_for instead of
11         cp_parser_c_for and cp_parser_range_for.
12         (cp_parser_for_init_statement): Add new parameter and return type.
13         (cp_parser_block_declaration): Update call to
14         cp_parser_simple_declaration.
15         (cp_parser_simple_declaration): Add new parameter.
16         Update call to cp_parser_init_declarator.
17         (cp_parser_init_declarator): Add new parameter.
18         * pt.c (tsubst_expr): Update call to begin_for_stmt.
19         * semantics.c (begin_for_scope): New.
20         (begin_for_stmt): Add two new parameters.
21         (begin_range_for_stmt): Likewise.
23 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
25         * parser.c (cp_parser_objc_at_property_declaration): Improved
26         error message.
28 2011-01-11  Dodji Seketeli  <dodji@redhat.com>
30         PR debug/46955
31         * cp-lang.c (get_template_innermost_arguments_folded)
32         (get_template_argument_pack_elems_folded)
33         (template_arg_needs_folding, fold_cplus_constants): New static
34         functions.
35         (LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS): Set this hook to
36         get_template_innermost_arguments_folded.
37         (LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS): Set this hook to
38         get_template_argument_pack_elems_folded.
40 2011-01-11  Jason Merrill  <jason@redhat.com>
42         PR c++/46658
43         * init.c (build_new_1): Handle value-init in templates differently.
45         PR c++/45520
46         * tree.c (maybe_dummy_object): Check current_class_ref against
47         context, not current_class_type.
49 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
51         PR objc/47078
52         * parser.c (cp_parser_objc_typename): If the type is unknown, for
53         error recovery purposes behave as if it was not specified so that
54         the default type is used.
56 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
58         PR c++/47022
59         * pt.c (tsubst_copy_and_build): Use tsubst instead of tsubst_copy
60         for the second build_x_va_arg argument.
62 2011-01-05  Tom Tromey  <tromey@redhat.com>
64         * typeck.c (cp_build_addr_expr_1): Update call to lvalue_error.
65         (lvalue_or_else): Likewise.
67 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
69         PR target/38662
70         * tree.c (cxx_type_hash_eq):
71         Allow METHOD_TYPE, too.
74 Copyright (C) 2011 Free Software Foundation, Inc.
76 Copying and distribution of this file, with or without modification,
77 are permitted in any medium without royalty provided the copyright
78 notice and this notice are preserved.