re PR c++/46903 ([C++0x] ICE unexpected expression of kind template_id_expr)
[gcc.git] / gcc / cp / ChangeLog
1 2011-01-14 Jason Merrill <jason@redhat.com>
2
3 PR c++/46903
4 * typeck2.c (check_narrowing): Only check arithmetic types.
5
6 PR c++/46688
7 * tree.c (build_vec_init_expr): Handle flexible array
8 properly.
9
10 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
11
12 PR c++/47213
13 * cp-tree.h (CLASSTYPE_VISIBILITY): Use
14 TYPE_MAIN_DECL instead of TYPE_NAME.
15 (CLASSTYPE_VISIBILITY_SPECIFIED): Likewise.
16 * decl2.c (determine_visibility): Add check
17 of CLASS_TYPE_P for underlying_type.
18
19 2011-01-12 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
20
21 * cp-tree.h (begin_for_scope): New prototype.
22 (begin_for_stmt): Update prototype.
23 (begin_range_for_stmt): Update prototype.
24 * init.c (build_vec_init): Update call to begin_for_stmt.
25 * parser.c (cp_parser_for): New.
26 (cp_parser_c_for): Add three new parameters.
27 (cp_parser_range_for): Likewise. Most parsing code removed.
28 (cp_parser_iteration_statement): Call cp_parser_for instead of
29 cp_parser_c_for and cp_parser_range_for.
30 (cp_parser_for_init_statement): Add new parameter and return type.
31 (cp_parser_block_declaration): Update call to
32 cp_parser_simple_declaration.
33 (cp_parser_simple_declaration): Add new parameter.
34 Update call to cp_parser_init_declarator.
35 (cp_parser_init_declarator): Add new parameter.
36 * pt.c (tsubst_expr): Update call to begin_for_stmt.
37 * semantics.c (begin_for_scope): New.
38 (begin_for_stmt): Add two new parameters.
39 (begin_range_for_stmt): Likewise.
40
41 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
42
43 * parser.c (cp_parser_objc_at_property_declaration): Improved
44 error message.
45
46 2011-01-11 Dodji Seketeli <dodji@redhat.com>
47
48 PR debug/46955
49 * cp-lang.c (get_template_innermost_arguments_folded)
50 (get_template_argument_pack_elems_folded)
51 (template_arg_needs_folding, fold_cplus_constants): New static
52 functions.
53 (LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS): Set this hook to
54 get_template_innermost_arguments_folded.
55 (LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS): Set this hook to
56 get_template_argument_pack_elems_folded.
57
58 2011-01-11 Jason Merrill <jason@redhat.com>
59
60 PR c++/46658
61 * init.c (build_new_1): Handle value-init in templates differently.
62
63 PR c++/45520
64 * tree.c (maybe_dummy_object): Check current_class_ref against
65 context, not current_class_type.
66
67 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
68
69 PR objc/47078
70 * parser.c (cp_parser_objc_typename): If the type is unknown, for
71 error recovery purposes behave as if it was not specified so that
72 the default type is used.
73
74 2011-01-07 Jakub Jelinek <jakub@redhat.com>
75
76 PR c++/47022
77 * pt.c (tsubst_copy_and_build): Use tsubst instead of tsubst_copy
78 for the second build_x_va_arg argument.
79
80 2011-01-05 Tom Tromey <tromey@redhat.com>
81
82 * typeck.c (cp_build_addr_expr_1): Update call to lvalue_error.
83 (lvalue_or_else): Likewise.
84
85 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
86
87 PR target/38662
88 * tree.c (cxx_type_hash_eq):
89 Allow METHOD_TYPE, too.
90
91 \f
92 Copyright (C) 2011 Free Software Foundation, Inc.
93
94 Copying and distribution of this file, with or without modification,
95 are permitted in any medium without royalty provided the copyright
96 notice and this notice are preserved.