OSDN Git Service

* decl.c (decls_match): Assert that the arguments are decls.
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
1 2012-01-11  Jason Merrill  <jason@redhat.com>
2
3         * decl.c (decls_match): Assert that the arguments are decls.
4
5         PR c++/51613
6         * pt.c (resolve_overloaded_unification): Compare types with
7         same_type_p, not decls_match.
8
9 2012-01-10  Jason Merrill  <jason@redhat.com>
10
11         PR c++/51614
12         * class.c (build_base_path): Diagnose ambiguous base.
13
14         PR c++/51433
15         * semantics.c (cxx_eval_call_expression): Always retry previously
16         non-constant expressions.
17
18 2012-01-06  Jason Merrill  <jason@redhat.com>
19
20         DR 686
21         PR c++/47450
22         * parser.c (cp_parser_new_expression): Set
23         type_definition_forbidden_message.
24
25         PR c++/6057
26         PR c++/48051
27         PR c++/50855
28         PR c++/51322
29         * mangle.c (write_expression): Support NEW_EXPR, DELETE_EXPR,
30         THROW_EXPR, CONSTRUCTOR, OVERLOAD.  Fix PREINCREMENT_EXPR and
31         PREDECREMENT_EXPR.
32         (write_template_arg): Fix mangling of class-scope functions and
33         argument packs.
34         (mangle_decl): Update suggested -fabi-version argument.
35         * operators.def: Add DOTSTAR_EXPR, REINTERPRET_CAST_EXPR,
36         DYNAMIC_CAST_EXPR; correct CONST_CAST_EXPR, STATIC_CAST_EXPR.
37         * tree.c (dependent_name): No longer static.
38         * cp-tree.h: Declare it.
39         * pt.c (unify): Defer handling of unconverted functions.
40
41         * mangle.c (mangle_decl): Don't generate mangling aliases
42         for maybe-in-charge [cd]tors.
43
44         * error.c (dump_expr): Print type of CONSTRUCTOR.
45
46 2012-01-05  Dodji Seketeli  <dodji@redhat.com>
47
48         PR c++/51541
49         * parser.c (cp_parser_alias_declaration): Get out early upon
50         errors in the identifier or the attributes.
51
52 2012-01-04  Paolo Carlini  <paolo.carlini@oracle.com>
53
54         PR c++/51064
55         * pt.c (tsubst_copy_and_build): Maybe set TREE_NO_WARNING on
56         the tree returned by build_x_binary_op.
57
58 2012-01-03  Paolo Carlini  <paolo.carlini@oracle.com>
59
60         PR c++/51738
61         * parser.c (cp_parser_postfix_open_square_expression): Handle
62         postfix-expression [ braced-init-list ].
63
64 2012-01-03  Paolo Carlini  <paolo.carlini@oracle.com>
65
66         PR c++/29273
67         * rtti.c (build_dynamic_cast_1): In case of T a pointer type,
68         call decay_conversion on v.
69
70 2012-01-03  Paolo Carlini  <paolo.carlini@oracle.com>
71
72         PR c++/15867
73         * decl.c (duplicate_decls): With -Wredundant-decls don't warn for
74         declaration followed by specialization.
75
76 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
77
78         PR c++/51669
79         * semantics.c (finish_omp_clauses): Call fold_build_cleanup_point_expr
80         on OMP_CLAUSE_{IF,FINAL,NUM_THREADS,SCHEDULE_CHUNK}_EXPR.
81
82 2012-01-02  Jason Merrill  <jason@redhat.com>
83
84         DR 1359
85         PR c++/51675
86         * method.c (walk_field_subobs): Don't check for uninitialized
87         fields in a union.
88         (synthesized_method_walk): Check here.
89
90         DR 325
91         PR c++/51666
92         * parser.c (cp_parser_cache_defarg): Split out...
93         (cp_parser_parameter_declaration): ...from here.
94         (cp_parser_save_nsdmi): Use it.
95         (cp_parser_cache_group): Remove CPP_COMMA support.
96
97 2012-01-02  Dodji Seketeli  <dodji@redhat.com>
98
99         PR c++/51462
100         * semantics.c (cx_check_missing_mem_inits): Don't assert in case
101         of error.
102
103 2012-01-02  Paolo Carlini  <paolo.carlini@oracle.com>
104
105         PR c++/20140
106         * typeck2.c (digest_init_r): Use copy_init when initializing
107         an array of chars.
108
109 2012-01-01  Paolo Carlini  <paolo.carlini@oracle.com>
110
111         PR c++/16603
112         * decl.c (build_enumerator): Don't call perform_integral_promotions
113         on the value.
114
115 2012-01-01  Paolo Carlini  <paolo.carlini@oracle.com>
116
117         PR c++/51379
118         * typeck.c (build_reinterpret_cast_1): Implement resolution of
119         DR 799.
120
121 2012-01-01  Fabien ChĂȘne  <fabien@gcc.gnu.org>
122
123         * parser.c (cp_parser_using_declaration): Add a warning about
124         deprecated access declarations when no errors were encountered
125         while parsing the access declaration. Save the first token in
126         order to emit the warning at the right place.
127 \f
128 Copyright (C) 2012 Free Software Foundation, Inc.
129
130 Copying and distribution of this file, with or without modification,
131 are permitted in any medium without royalty provided the copyright
132 notice and this notice are preserved.