1 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4 * typeck.c (convert_arguments): Update error message.
7 2010-02-22 Mike Stump <mikestump@comcast.net>
10 * decl.c (duplicate_decls): Merge DECL_PRESERVE_P.
12 2010-02-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
15 * error.c (print_instantiation_partial_context_line): New.
16 (print_instantiation_partial_context): Print at most 12 contexts,
17 skip the rest with a message.
19 2010-02-21 Dodji Seketeli <dodji@redhat.com>
22 * pt.c (lookup_template_class): Better support of specialization
23 of member of class template implicit instantiation.
25 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
28 * call.c (conversion_null_warnings): Replace -Wconversion with
30 * cvt.c (build_expr_type_conversion): Likewise.
32 2010-02-18 Jason Merrill <jason@redhat.com>
35 * class.c (create_vtable_ptr): Set DECL_PACKED if type is packed.
38 * typeck.c (cp_build_binary_op): Adapt mixed complex/non handling from
40 * cp-tree.h (WANT_VECTOR_OR_COMPLEX): Rename from WANT_VECTOR.
41 * cvt.c (build_expr_type_conversion): Allow COMPLEX_TYPE.
44 * semantics.c (finish_goto_stmt): Don't call decay_conversion.
48 * pt.c (tsubst_qualified_id): Do normal lookup in non-dependent scope.
49 (maybe_update_decl_type): New fn.
50 * parser.c (cp_parser_init_declarator): Use it.
53 * semantics.c (begin_class_definition): Don't crash on unnamed ns.
55 2010-02-17 Jason Merrill <jason@redhat.com>
58 * call.c (build_over_call): Don't create zero-sized assignments.
59 * cp-gimplify.c (cp_genericize_r): Don't remove them here.
60 * cp-objcp-common.c (cp_expr_size): Remove.
61 * cp-tree.h: Remove prototype.
64 * name-lookup.c (set_decl_namespace): Don't copy DECL_CONTEXT if the
65 decl we looked up doesn't match.
68 * cp-gimplify.c (cp_gimplify_expr) [INIT_EXPR]: Return if we don't
69 have an INIT_EXPR anymore.
72 * pt.c (convert_nontype_argument): Change assert to test.
74 2010-02-16 Jason Merrill <jason@redhat.com>
76 * cp-gimplify.c (cp_gimplify_expr): Fix error recovery.
79 * cp-gimplify.c (cp_gimplify_expr) [MODIFY_EXPR]: Use
80 VIEW_CONVERT_EXPR for conversions between structural equality types
81 that the back end can't tell are the same.
84 * tree.c (build_cplus_array_type): Set TYPE_MAIN_VARIANT to strip
85 cv-quals from element here.
86 (cp_build_qualified_type_real): Not here. Preserve typedef name.
88 2010-02-14 Jason Merrill <jason@redhat.com>
91 * semantics.c (finish_compound_literal): Use
92 cp_apply_type_quals_to_decl when creating a static variable.
94 2010-02-12 Jason Merrill <jason@redhat.com>
97 * name-lookup.h (current_binding_level): Check for null
100 2010-02-12 Jason Merrill <jason@redhat.com>
103 * tree.c (cp_tree_equal): Correct CALL_EXPR logic.
105 2010-02-12 Jakub Jelinek <jakub@redhat.com>
108 * name-lookup.c (pushdecl_maybe_friend): Check default args of t
111 2010-02-10 Jason Merrill <jason@redhat.com>
114 * semantics.c (outer_lambda_capture_p): Revert.
115 (add_capture): Only finish_member_declaration if
116 we're in the lambda class.
117 (register_capture_members): New.
118 * cp-tree.h: Declare it.
119 * parser.c (cp_parser_lambda_expression): Call it.
121 2010-02-10 Jason Merrill <jason@redhat.com>
124 * semantics.c (outer_lambda_capture_p): Use current_function_decl
125 instead of current_class_type.
127 2010-02-10 Jason Merrill <jason@redhat.com>
129 PR c++/42983, core issue 906
130 * method.c (defaultable_fn_check): Check virtualness.
132 2010-02-10 Jason Merrill <jason@redhat.com>
135 * semantics.c (maybe_add_lambda_conv_op): Set DECL_INTERFACE_KNOWN.
137 2010-02-10 Shujing Zhao <pearly.zhao@oracle.com>
139 * Make-lang.in (cp/cvt.o, cp/parser.o, cp/search.o): Depend on intl.h.
140 * cvt.c (warn_ref_binding): Wrap the messages into G_() for easy
142 * parser.c (cp_parser_postfix_expression, cp_parser_new_type_id)
143 (cp_parser_cast_expression, cp_parser_condition, cp_parser_decltype)
144 (cp_parser_parameter_declaration)
145 (cp_parser_exception_specification_opt)
146 (cp_parser_exception_declaration): Likewise.
147 * pt.c (check_default_tmpl_args): Likewise.
148 * search.c (lookup_field_r): Likewise.
150 2010-02-09 Jason Merrill <jason@redhat.com>
153 * pt.c (tsubst_copy_and_build): Propagate LAMBDA_EXPR_LOCATION.
155 2010-02-09 Jason Merrill <jason@redhat.com>
158 * decl2.c (change_return_type): New fn.
159 * semantics.c (apply_lambda_return_type): Use it.
160 * cp-tree.h: Declare it.
162 2010-02-05 Richard Guenther <rguenther@suse.de>
164 * Make-lang.in (cp/cp-lang.o): Depend on gt-cp-cp-lang.h.
165 * cp-lang.c: Include gt-cp-cp-lang.h.
166 * config-lang.in (gtfiles): Add cp/cp-lang.c.
168 2010-02-05 Dodji Seketeli <dodji@redhat.com>
171 * typeck.c (get_template_parms_of_dependent_type): Try getting
172 the template parameters fromt the type itself first.
174 2010-02-03 Jason Merrill <jason@redhat.com>
178 * mangle.c (write_unqualified_id): Split out from write_expression.
179 (write_unqualified_name): Call it.
180 (write_member_name): Likewise.
181 (write_expression): Support TEMPLATE_ID_EXPR.
182 Disambiguate operator names.
185 * mangle.c (write_type) [VECTOR_TYPE]: Change mangling with
188 2010-02-02 Jason Merrill <jason@redhat.com>
191 * decl.c (cp_finish_decl): Add local statics to cfun->local_decls.
192 * optimize.c (clone_body): Remap their initializers when making base
194 (maybe_clone_body): Complain if multiple clones aren't safe.
196 2010-01-29 Dodji Seketeli <dodji@redhat.com>
203 * cp-tree.h (NON_DEFAULT_TEMPLATE_ARGS_COUNT,
204 SET_NON_DEFAULT_TEMPLATE_ARGS_COUNT,
205 GET_NON_DEFAULT_TEMPLATE_ARGS_COUNT): New accessor macros.
206 * pt.c (coerce_template_parms, type_unification_real,
207 expand_template_argument_pack, coerce_template_parameter_pack):
208 Set the non default template args count.
209 (current_template_args): Always set non defaulted
210 template args count when compiled with --enable-checking
211 (tsubst_template_args, type_unification_real): Propagate the non
212 defaulted template args count.
213 * error.c (get_non_default_template_args_count): Renamed
214 count_non_default_template_args into this. Don't calculate the
215 non default template argument count anymore. Use the new
216 accessor macros above to get it.
217 (dump_template_argument_list, dump_type, dump_decl,
218 dump_template_parms): Adjust.
219 * parser.c (cp_parser_template_argument_list): Always set defaulted
220 template args count when compiled with --enable-checking.
222 2010-01-29 Shujing Zhao <pearly.zhao@oracle.com>
224 * decl.c (redeclaration_error_message): Wrap the return messages into
225 G_() for easy translation.
227 2010-01-28 Jason Merrill <jason@redhat.com>
230 * semantics.c (begin_class_definition): Don't use type_as_string.
232 2010-01-28 Dodji Seketeli <dodji@redhat.com>
236 * typeck.c (get_template_parms_of_dependent_type): Factorized
237 this out of incompatible_template_type_parms_p
238 (incompatible_dependent_types_p): Renamed
239 incompatible_template_type_parms_p into this. Make it detect
240 two incompatible dependent typedefs too.
241 (structural_comptypes): Use incompatible_dependent_types_p.
242 * pt.c (get_template_info):
243 Handle BOUND_TEMPLATE_TEMPLATE_PARAM.
245 2010-01-20 Janis Johnson <janis187@us.ibm.com>
246 Jason Merrill <jason@redhat.com>
248 * mangle.c (write_type): Mangle transparent record as member type.
249 * semantics.c (begin_class_definition): Recognize decimal classes
250 and set TYPE_TRANSPARENT_AGGR.
252 2010-01-20 Jason Merrill <jason@redhat.com>
255 * mangle.c (write_expression): Handle tree codes that have extra
256 arguments in the middle-end.
258 2010-01-20 Paolo Carlini <paolo.carlini@oracle.com>
261 * except.c (expand_start_catch_block): Deal correctly with
262 do_begin_catch returning error_mark_node.
264 2010-01-20 Jason Merrill <jason@redhat.com>
267 * class.c (layout_class_type): Set packed_maybe_necessary for packed
271 * semantics.c (build_lambda_object): Call mark_used on captured
275 * decl.c (grokdeclarator): Clear type_quals for a member function
276 declared using a typedef. Don't complain about adding cv-quals
277 to a function typedef in C++0x mode.
279 2010-01-20 Jakub Jelinek <jakub@redhat.com>
281 * decl.c (create_array_type_for_decl): Remove set but not used
282 variable error_msg. Remove break stmts after return stmts.
284 2010-01-19 Dodji Seketeli <dodji@redhat.com>
286 * error.c (dump_template_parms, count_non_default_template_args):
287 Revert fix of PR c++/42634.
289 2010-01-18 Dodji Seketeli <dodji@redhat.com>
292 * error.c (dump_template_parms): Use innermost template
293 arguments before calling count_non_default_template_args.
294 (count_non_default_template_args): We are being called with
295 template innermost arguments now. There is no need to ensure
298 2010-01-18 Dodji Seketeli <dodji@redhat.com>
301 * cvt.c (build_expr_type_conversion): Look through OVERLOAD.
303 2010-01-17 Dodji Seketeli <dodji@redhat.com>
306 *pt.c (tsubst_decl): Revert commit for PR c++/42697.
308 2010-01-17 Dodji Seketeli <dodji@redhat.com>
311 *pt.c (tsubst_decl): Get the arguments of a specialization from
312 the specialization template, not from the most general template.
314 2010-01-16 Jason Merrill <jason@redhat.com>
317 * semantics.c (finish_decltype_type): Within a template, treat
318 unresolved CALL_EXPR as dependent.
320 2010-01-15 Dodji Seketeli <dodji@redhat.com>
322 * error.c (dump_template_parms,count_non_default_template_args):
323 Revert changes of PR c++/42634.
325 2010-01-14 Jakub Jelinek <jakub@redhat.com>
328 * decl.c (finish_function): Don't emit -Wreturn-type warnings in
329 functions with noreturn attribute.
331 2010-01-14 Jason Merrill <jason@redhat.com>
334 * call.c (build_new_method_call): Don't free the vec here.
337 * call.c (convert_like_real): Do full decay_conversion for ck_rvalue.
339 2010-01-13 Dodji Seketeli <dodji@redhat.com>
342 * error.c (dump_template_parms): Use innermost template
343 arguments before calling count_non_default_template_args.
344 (count_non_default_template_args): We are being called with
345 template innermost arguments now. There is no need to ensure
348 2010-01-07 Dodji Seketeli <dodji@redhat.com>
351 * pt.c (unify_pack_expansion): In non-deduced contexts, re-use template
352 arguments that were previously deduced.
354 2010-01-05 Jason Merrill <jason@redhat.com>
356 * pt.c (unify_pack_expansion): Handle deduction from init-list.
357 * call.c (build_over_call): Don't complain about it.
359 2010-01-04 Jason Merrill <jason@redhat.com>
362 * pt.c (tsubst_decl): Don't apply type attributes in place.
365 * semantics.c (describable_type): Remove decltype comment and
370 Copyright (C) 2010 Free Software Foundation, Inc.
372 Copying and distribution of this file, with or without modification,
373 are permitted in any medium without royalty provided the copyright
374 notice and this notice are preserved.