OSDN Git Service

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