1 2010-03-22 Jason Merrill <jason@redhat.com>
4 * pt.c (contains_auto_r): New fn.
5 (do_auto_deduction): Use it.
6 (tsubst): Don't look at TREE_TYPE of a TEMPLATE_TYPE_PARM.
8 2010-03-20 Simon Martin <simartin@users.sourceforge.net>
11 * decl2.c (grokfield): Handle invalid initializers for member
14 2010-03-20 Dodji Seketeli <dodji@redhat.com>
17 * method.c (make_alias_for): Avoid crashing when DECL_LANG_SPECIFIC
19 * decl2.c (vague_linkage_p): Likewise.
21 2010-03-18 Paolo Carlini <paolo.carlini@oracle.com>
24 * parser.c (cp_parser_for_init_statement): Use NULL_TREE, not
25 false, in the cp_parser_expression_statement call.
27 2010-03-05 Jason Merrill <jason@redhat.com>
29 * mangle.c (mangle_decl): Give name collision error even without
32 2010-03-04 Marco Poletti <poletti.marco@gmail.com>
34 * pt.c (process_partial_specialization): Use error_n instead of
37 2010-03-03 Jason Merrill <jason@redhat.com>
40 * mangle.c (mangle_decl): Handle VAR_DECL, too.
42 2010-03-03 Jason Merrill <jason@redhat.com>
45 * mangle.c: Include cgraph.h.
46 (mangle_decl): If the mangled name will change in a later
47 ABI version, make the later mangled name an alias.
48 * method.c (make_alias_for): Copy DECL_ARGUMENTS.
49 * Make-lang.in (mangle.o): Depend on cgraph.h.
50 * method.c (make_alias_for): Handle VAR_DECL, too.
51 * decl2.c (vague_linkage_p): Rename from vague_linkage_fn_p.
52 * tree.c (no_linkage_check): Adjust.
53 * decl.c (maybe_commonize_var): Adjust.
56 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
58 * pt.c (redeclare_class_template): Use error_n and inform_n.
60 2010-02-27 Mark Mitchell <mark@codesourcery.com>
63 * cp-tree.h (push_tinst_level): Declare.
64 (pop_tinst_level): Likewise.
65 * pt.c (push_tinst_level): Give it external linkage.
66 (pop_tinst_level): Likewise.
67 * mangle.c (mangle_decl_string): Set the source location to that
68 of the decl while mangling.
70 2010-02-27 Simon Martin <simartin@users.sourceforge.net>
73 * pt.c (redeclare_class_template): Return false if there are erroneous
76 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
78 * pt.c (push_tinst_level): Replace -ftemplate-depth- with
81 2010-02-24 Jason Merrill <jason@redhat.com>
84 * mangle.c (write_type): Give -Wabi warning for old vector mangling.
86 * class.c (layout_class_type): Don't give -Wabi warning for a bug
87 in a previous ABI version.
89 2010-02-23 Jason Merrill <jason@redhat.com>
92 * typeck2.c (digest_init_r): Accept value init of array.
94 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
97 * typeck.c (convert_arguments): Update error message.
99 2010-02-22 Mike Stump <mikestump@comcast.net>
102 * decl.c (duplicate_decls): Merge DECL_PRESERVE_P.
104 2010-02-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
107 * error.c (print_instantiation_partial_context_line): New.
108 (print_instantiation_partial_context): Print at most 12 contexts,
109 skip the rest with a message.
111 2010-02-21 Dodji Seketeli <dodji@redhat.com>
114 * pt.c (lookup_template_class): Better support of specialization
115 of member of class template implicit instantiation.
117 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
120 * call.c (conversion_null_warnings): Replace -Wconversion with
122 * cvt.c (build_expr_type_conversion): Likewise.
124 2010-02-18 Jason Merrill <jason@redhat.com>
127 * class.c (create_vtable_ptr): Set DECL_PACKED if type is packed.
130 * typeck.c (cp_build_binary_op): Adapt mixed complex/non handling from
132 * cp-tree.h (WANT_VECTOR_OR_COMPLEX): Rename from WANT_VECTOR.
133 * cvt.c (build_expr_type_conversion): Allow COMPLEX_TYPE.
136 * semantics.c (finish_goto_stmt): Don't call decay_conversion.
140 * pt.c (tsubst_qualified_id): Do normal lookup in non-dependent scope.
141 (maybe_update_decl_type): New fn.
142 * parser.c (cp_parser_init_declarator): Use it.
145 * semantics.c (begin_class_definition): Don't crash on unnamed ns.
147 2010-02-17 Jason Merrill <jason@redhat.com>
150 * call.c (build_over_call): Don't create zero-sized assignments.
151 * cp-gimplify.c (cp_genericize_r): Don't remove them here.
152 * cp-objcp-common.c (cp_expr_size): Remove.
153 * cp-tree.h: Remove prototype.
156 * name-lookup.c (set_decl_namespace): Don't copy DECL_CONTEXT if the
157 decl we looked up doesn't match.
160 * cp-gimplify.c (cp_gimplify_expr) [INIT_EXPR]: Return if we don't
161 have an INIT_EXPR anymore.
164 * pt.c (convert_nontype_argument): Change assert to test.
166 2010-02-16 Jason Merrill <jason@redhat.com>
168 * cp-gimplify.c (cp_gimplify_expr): Fix error recovery.
171 * cp-gimplify.c (cp_gimplify_expr) [MODIFY_EXPR]: Use
172 VIEW_CONVERT_EXPR for conversions between structural equality types
173 that the back end can't tell are the same.
176 * tree.c (build_cplus_array_type): Set TYPE_MAIN_VARIANT to strip
177 cv-quals from element here.
178 (cp_build_qualified_type_real): Not here. Preserve typedef name.
180 2010-02-14 Jason Merrill <jason@redhat.com>
183 * semantics.c (finish_compound_literal): Use
184 cp_apply_type_quals_to_decl when creating a static variable.
186 2010-02-12 Jason Merrill <jason@redhat.com>
189 * name-lookup.h (current_binding_level): Check for null
192 2010-02-12 Jason Merrill <jason@redhat.com>
195 * tree.c (cp_tree_equal): Correct CALL_EXPR logic.
197 2010-02-12 Jakub Jelinek <jakub@redhat.com>
200 * name-lookup.c (pushdecl_maybe_friend): Check default args of t
203 2010-02-10 Jason Merrill <jason@redhat.com>
206 * semantics.c (outer_lambda_capture_p): Revert.
207 (add_capture): Only finish_member_declaration if
208 we're in the lambda class.
209 (register_capture_members): New.
210 * cp-tree.h: Declare it.
211 * parser.c (cp_parser_lambda_expression): Call it.
213 2010-02-10 Jason Merrill <jason@redhat.com>
216 * semantics.c (outer_lambda_capture_p): Use current_function_decl
217 instead of current_class_type.
219 2010-02-10 Jason Merrill <jason@redhat.com>
221 PR c++/42983, core issue 906
222 * method.c (defaultable_fn_check): Check virtualness.
224 2010-02-10 Jason Merrill <jason@redhat.com>
227 * semantics.c (maybe_add_lambda_conv_op): Set DECL_INTERFACE_KNOWN.
229 2010-02-10 Shujing Zhao <pearly.zhao@oracle.com>
231 * Make-lang.in (cp/cvt.o, cp/parser.o, cp/search.o): Depend on intl.h.
232 * cvt.c (warn_ref_binding): Wrap the messages into G_() for easy
234 * parser.c (cp_parser_postfix_expression, cp_parser_new_type_id)
235 (cp_parser_cast_expression, cp_parser_condition, cp_parser_decltype)
236 (cp_parser_parameter_declaration)
237 (cp_parser_exception_specification_opt)
238 (cp_parser_exception_declaration): Likewise.
239 * pt.c (check_default_tmpl_args): Likewise.
240 * search.c (lookup_field_r): Likewise.
242 2010-02-09 Jason Merrill <jason@redhat.com>
245 * pt.c (tsubst_copy_and_build): Propagate LAMBDA_EXPR_LOCATION.
247 2010-02-09 Jason Merrill <jason@redhat.com>
250 * decl2.c (change_return_type): New fn.
251 * semantics.c (apply_lambda_return_type): Use it.
252 * cp-tree.h: Declare it.
254 2010-02-05 Richard Guenther <rguenther@suse.de>
256 * Make-lang.in (cp/cp-lang.o): Depend on gt-cp-cp-lang.h.
257 * cp-lang.c: Include gt-cp-cp-lang.h.
258 * config-lang.in (gtfiles): Add cp/cp-lang.c.
260 2010-02-05 Dodji Seketeli <dodji@redhat.com>
263 * typeck.c (get_template_parms_of_dependent_type): Try getting
264 the template parameters fromt the type itself first.
266 2010-02-03 Jason Merrill <jason@redhat.com>
270 * mangle.c (write_unqualified_id): Split out from write_expression.
271 (write_unqualified_name): Call it.
272 (write_member_name): Likewise.
273 (write_expression): Support TEMPLATE_ID_EXPR.
274 Disambiguate operator names.
277 * mangle.c (write_type) [VECTOR_TYPE]: Change mangling with
280 2010-02-02 Jason Merrill <jason@redhat.com>
283 * decl.c (cp_finish_decl): Add local statics to cfun->local_decls.
284 * optimize.c (clone_body): Remap their initializers when making base
286 (maybe_clone_body): Complain if multiple clones aren't safe.
288 2010-01-29 Dodji Seketeli <dodji@redhat.com>
295 * cp-tree.h (NON_DEFAULT_TEMPLATE_ARGS_COUNT,
296 SET_NON_DEFAULT_TEMPLATE_ARGS_COUNT,
297 GET_NON_DEFAULT_TEMPLATE_ARGS_COUNT): New accessor macros.
298 * pt.c (coerce_template_parms, type_unification_real,
299 expand_template_argument_pack, coerce_template_parameter_pack):
300 Set the non default template args count.
301 (current_template_args): Always set non defaulted
302 template args count when compiled with --enable-checking
303 (tsubst_template_args, type_unification_real): Propagate the non
304 defaulted template args count.
305 * error.c (get_non_default_template_args_count): Renamed
306 count_non_default_template_args into this. Don't calculate the
307 non default template argument count anymore. Use the new
308 accessor macros above to get it.
309 (dump_template_argument_list, dump_type, dump_decl,
310 dump_template_parms): Adjust.
311 * parser.c (cp_parser_template_argument_list): Always set defaulted
312 template args count when compiled with --enable-checking.
314 2010-01-29 Shujing Zhao <pearly.zhao@oracle.com>
316 * decl.c (redeclaration_error_message): Wrap the return messages into
317 G_() for easy translation.
319 2010-01-28 Jason Merrill <jason@redhat.com>
322 * semantics.c (begin_class_definition): Don't use type_as_string.
324 2010-01-28 Dodji Seketeli <dodji@redhat.com>
328 * typeck.c (get_template_parms_of_dependent_type): Factorized
329 this out of incompatible_template_type_parms_p
330 (incompatible_dependent_types_p): Renamed
331 incompatible_template_type_parms_p into this. Make it detect
332 two incompatible dependent typedefs too.
333 (structural_comptypes): Use incompatible_dependent_types_p.
334 * pt.c (get_template_info):
335 Handle BOUND_TEMPLATE_TEMPLATE_PARAM.
337 2010-01-20 Janis Johnson <janis187@us.ibm.com>
338 Jason Merrill <jason@redhat.com>
340 * mangle.c (write_type): Mangle transparent record as member type.
341 * semantics.c (begin_class_definition): Recognize decimal classes
342 and set TYPE_TRANSPARENT_AGGR.
344 2010-01-20 Jason Merrill <jason@redhat.com>
347 * mangle.c (write_expression): Handle tree codes that have extra
348 arguments in the middle-end.
350 2010-01-20 Paolo Carlini <paolo.carlini@oracle.com>
353 * except.c (expand_start_catch_block): Deal correctly with
354 do_begin_catch returning error_mark_node.
356 2010-01-20 Jason Merrill <jason@redhat.com>
359 * class.c (layout_class_type): Set packed_maybe_necessary for packed
363 * semantics.c (build_lambda_object): Call mark_used on captured
367 * decl.c (grokdeclarator): Clear type_quals for a member function
368 declared using a typedef. Don't complain about adding cv-quals
369 to a function typedef in C++0x mode.
371 2010-01-20 Jakub Jelinek <jakub@redhat.com>
373 * decl.c (create_array_type_for_decl): Remove set but not used
374 variable error_msg. Remove break stmts after return stmts.
376 2010-01-19 Dodji Seketeli <dodji@redhat.com>
378 * error.c (dump_template_parms, count_non_default_template_args):
379 Revert fix of PR c++/42634.
381 2010-01-18 Dodji Seketeli <dodji@redhat.com>
384 * error.c (dump_template_parms): Use innermost template
385 arguments before calling count_non_default_template_args.
386 (count_non_default_template_args): We are being called with
387 template innermost arguments now. There is no need to ensure
390 2010-01-18 Dodji Seketeli <dodji@redhat.com>
393 * cvt.c (build_expr_type_conversion): Look through OVERLOAD.
395 2010-01-17 Dodji Seketeli <dodji@redhat.com>
398 *pt.c (tsubst_decl): Revert commit for PR c++/42697.
400 2010-01-17 Dodji Seketeli <dodji@redhat.com>
403 *pt.c (tsubst_decl): Get the arguments of a specialization from
404 the specialization template, not from the most general template.
406 2010-01-16 Jason Merrill <jason@redhat.com>
409 * semantics.c (finish_decltype_type): Within a template, treat
410 unresolved CALL_EXPR as dependent.
412 2010-01-15 Dodji Seketeli <dodji@redhat.com>
414 * error.c (dump_template_parms,count_non_default_template_args):
415 Revert changes of PR c++/42634.
417 2010-01-14 Jakub Jelinek <jakub@redhat.com>
420 * decl.c (finish_function): Don't emit -Wreturn-type warnings in
421 functions with noreturn attribute.
423 2010-01-14 Jason Merrill <jason@redhat.com>
426 * call.c (build_new_method_call): Don't free the vec here.
429 * call.c (convert_like_real): Do full decay_conversion for ck_rvalue.
431 2010-01-13 Dodji Seketeli <dodji@redhat.com>
434 * error.c (dump_template_parms): Use innermost template
435 arguments before calling count_non_default_template_args.
436 (count_non_default_template_args): We are being called with
437 template innermost arguments now. There is no need to ensure
440 2010-01-07 Dodji Seketeli <dodji@redhat.com>
443 * pt.c (unify_pack_expansion): In non-deduced contexts, re-use template
444 arguments that were previously deduced.
446 2010-01-05 Jason Merrill <jason@redhat.com>
448 * pt.c (unify_pack_expansion): Handle deduction from init-list.
449 * call.c (build_over_call): Don't complain about it.
451 2010-01-04 Jason Merrill <jason@redhat.com>
454 * pt.c (tsubst_decl): Don't apply type attributes in place.
457 * semantics.c (describable_type): Remove decltype comment and
462 Copyright (C) 2010 Free Software Foundation, Inc.
464 Copying and distribution of this file, with or without modification,
465 are permitted in any medium without royalty provided the copyright
466 notice and this notice are preserved.