1 2015-08-04 Jason Merrill <jason@redhat.com>
3 * tree.c (build_target_expr): Copy the location from value.
5 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
7 * parser.c (cp_parser_selection_statement): Move handling of
9 (cp_parser_implicitly_scoped_statement): .. here. Call
10 warn_for_misleading_indentation even when the body is a
11 semicolon. Extract token_indent_infos corresponding to the
12 guard, body and next tokens. Adjust call to
13 warn_for_misleading_indentation accordingly. Take
14 token_indent_info argument.
15 (cp_parser_already_scoped_statement): Likewise.
16 (cp_parser_selection_statement, cp_parser_iteration_statement):
17 Extract a token_indent_info corresponding to the guard token.
19 2015-08-01 Caroline Tice <cmtice@google.com>
22 * mangle.c : Add vtable-verify.h to include files.
23 (get_mangled_vtable_map_var_name): If the DECL_ASSEMBLER_NAME
24 is "<anon>" get the real mangled name for the class instead, and
25 also store the real mangled name in a vector for use later.
27 2015-07-31 Marek Polacek <polacek@redhat.com>
30 * typeck.c (get_member_function_from_ptrfunc): Don't sanitize
33 2015-07-30 Paolo Carlini <paolo.carlini@oracle.com>
35 * class.c (check_for_override): Use DECL_SOURCE_LOCATION and "%qD"
36 in warning_at instead of "%q+D" in warning.
37 (warn_hidden): Likewise but use location_of.
38 (finish_struct_anon_r): Likewise use DECL_SOURCE_LOCATION in permerror.
39 (check_bitfield_decl, check_field_decls): Likewise in warning_at.
40 (check_field_decls): Likewise for permerror.
41 (explain_non_literal_class): Likewise for inform.
42 (check_bases_and_members, layout_class_type): Likewise for warning_at.
43 (note_name_declared_in_class): Use location_of in permerror.
44 * name-lookup.c (diagnose_name_conflict): Use location_of in inform.
45 (pushdecl_maybe_friend_1): Use DECL_SOURCE_LOCATION in pedwarn,
46 inform, and warning_at.
47 (check_for_out_of_scope_variable): Likewise for warning_at and
50 2015-07-30 Jason Merrill <jason@redhat.com>
54 * pt.c (tsubst_decl) [TYPE_DECL]: Clear TYPE_DEPENDENT_P_VALID.
56 2015-07-28 Paolo Carlini <paolo.carlini@oracle.com>
58 * call.c (build_op_delete_call, convert_like_real, build_over_call):
59 Use Use DECL_SOURCE_LOCATION and "%qD" in inform and pedwarn instead
61 * constexpr.c (explain_invalid_constexpr_fn): Likewise.
62 * decl.c (duplicate_decls): Likewise for warning/warning_at.
63 * except.c (maybe_noexcept_warning): Likewise.
64 * friend.c (make_friend_class): Likewise for inform.
65 * mangle.c (mangle_decl): Likewise for warning/warning_at.
66 * method.c (process_subob_fn, walk_field_subobs,
67 maybe_explain_implicit_delete): Likewise for inform.
68 * parser.c (cp_parser_lambda_introducer): Likewise.
69 * pt.c (check_specialization_namespace,
70 maybe_process_partial_specialization): Likewise for permerror.
71 (redeclare_class_template): Likewise for inform_n.
72 (coerce_template_parms, tsubst_copy_and_build): Likewise for inform.
73 * search.c (check_final_overrider): Likewise.
74 * semantics.c (process_outer_var_ref): Likewise.
76 2015-07-27 Jason Merrill <jason@redhat.com>
78 * constexpr.c (cxx_eval_call_expression): Don't add this call to
79 the hash table if !depth_ok.
81 2015-07-27 Marek Polacek <polacek@redhat.com>
85 * call.c (build_new_op_1): Call warn_tautological_cmp.
86 * pt.c (tsubst_copy_and_build): Use sentinel to suppress tautological
89 2015-07-26 Patrick Palka <ppalka@gcc.gnu.org>
92 * typeck.c (check_return_expr): Also do the basic return-value
93 validity checking if processing_template_decl and yet types are
94 not dependent. Remove obsolete code.
96 2015-07-26 Paolo Carlini <paolo.carlini@oracle.com>
98 * decl.c (poplevel): Use Use DECL_SOURCE_LOCATION and "%qD"
99 in warning_at instead of "%q+D" in warning.
100 (warn_extern_redeclared_static): Likewise for inform.
101 (check_redeclaration_no_default_args): Likewise for permerror.
102 (duplicate_decls): Likewise.
103 (check_previous_goto_1): Likewise for inform.
104 (check_goto, start_decl, check_for_uninitialized_const_var,
105 start_preparsed_function, finish_function§): Likewise.
106 * decl2.c (build_anon_union_vars, c_parse_final_cleanups): Likewise.
107 * init.c (sort_mem_initializers): Likewise.
108 * typeck.c (convert_for_initialization): Likewise for inform.
109 (maybe_warn_about_returning_address_of_local): Likewise.
110 * typeck2.c (abstract_virtuals_error_sfinae): Likewise for inform.
111 (cxx_incomplete_type_diagnostic): Likewise for emit_diagnostic.
113 2015-07-25 Patrick Palka <ppalka@gcc.gnu.org>
116 * cvt.c (ocp_convert): Don't call scalar_constant_value when
117 converting to a class type.
119 2015-07-24 Jason Merrill <jason@redhat.com>
122 * pt.c (splice_late_return_type): Correct deduced return type for
123 abbreviated function template.
125 2015-07-24 Richard Biener <rguenther@suse.de>
127 * init.c (build_vec_init): Build iterator bound in the same
128 type as the iterator.
130 2015-07-23 Marek Polacek <polacek@redhat.com>
133 * pt.c (tsubst_copy_and_build): Add warn_logical_op sentinel.
135 2015-07-23 Paolo Carlini <paolo.carlini@oracle.com>
138 * parser.c (cp_parser_simple_declaration): Robustify check avoiding
139 redundant error messages.
141 2015-07-21 Paolo Carlini <paolo.carlini@oracle.com>
143 * decl.c (grokdeclarator): For an erroneous template parameter
144 propagate error_mark_node as type.
146 2015-07-20 Marek Polacek <polacek@redhat.com>
149 * typeck.c (cp_build_binary_op): Warn about left shift overflows.
151 2015-07-15 Jason Merrill <jason@redhat.com>
154 * parser.c (cp_parser_unqualified_id): Don't accept ~x in a
155 template if there is no type x in scope.
157 2015-07-14 Patrick Palka <ppalka@gcc.gnu.org>
160 * pt.c (redeclare_class_template): Set the DECL_CONTEXTs of each
161 template template parm in the redeclaration.
162 (lookup_template_class_1): Peel off irrelevant template levels
163 from current_template_parms before augmenting the argument
166 2015-07-14 Andrea Azzarone <azzaronea@gmail.com>
169 * parser.c (cp_parser_sizeof_pack): Also consider template template
172 2015-07-14 Jason Merrill <jason@redhat.com>
174 * call.c (build_new_method_call_1): Call reshape_init.
176 2015-07-14 Paolo Carlini <paolo.carlini@oracle.com>
178 * pt.c (check_template_shadow): Emit error + inform instead of
181 2015-07-13 Patrick Palka <ppalka@gcc.gnu.org>
184 * pt.c (invalid_nontype_parm_type_p): Accept a bound template
185 template parm type under C++11 and later.
187 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
189 * call.c: Fix double word typos.
190 * cp-array-notation.c: Same.
193 * name-lookup.c: Same.
196 2015-07-10 Patrick Palka <ppalka@gcc.gnu.org>
199 * pt.c (begin_template_parm_list): Add a dummy parameter level
200 to current_template_parms.
201 (end_template_parm_list): Remove the dummy parameter level
202 before adding the real one.
203 (tsubst): Don't attempt to substitute for template parameters
204 corresponding to a dummy argument level.
205 (template_parms_to_args): Remove obsolete hack for
206 giving template template arguments the proper level.
207 (splite_late_return_type): Remove obsolete hack for giving
208 template template arguments the proper level.
209 * error.c (dump_template_decl): Don't print dummy template
212 2015-07-10 Paolo Carlini <paolo.carlini@oracle.com>
215 * call.c (convert_like_real): Do not set LOOKUP_ONLYCONVERTING for
216 the second step of copy-initialization.
218 2015-07-10 Jason Merrill <jason@redhat.com>
220 * pt.c (find_parameter_packs_r): Handle variable templates.
221 (variable_template_specialization_p): New.
222 * cp-tree.h: Declare it.
224 * parser.c (cp_parser_template_id): SET_EXPR_LOCATION.
226 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
228 * decl2.c (cpp_check): Revert latest change.
230 2015-07-09 Jason Merrill <jason@redhat.com>
232 * pt.c (instantiation_dependent_r) [TRAIT_EXPR]: Call
233 value_dependent_expression_p.
235 * cp-tree.h (struct cp_parameter_declarator): Rename ellipsis_p to
236 template_parameter_pack_p.
237 * parser.c (declarator_can_be_parameter_pack): False if
238 parameter_pack_p is set.
239 (make_parameter_declarator): Add template_parameter_pack_p parm.
240 (cp_parser_template_parameter): Remove parameter pack parsing.
241 (cp_parser_parameter_declaration): Handle all parameter packs.
242 Tweak default argument permerror.
244 2015-07-09 Andrew Sutton <andrew.n.sutton@gmail.com>
246 * parser.c (cp_parser_default_type_template_argument)
247 (cp_parser_default_template_template_argument): Factor out from
248 cp_parser_type_parameter.
250 2015-07-09 Paolo Carlini <paolo.carlini@oracle.com>
252 * typeck.c (warn_args_num): Rename to error_args_num.
253 (convert_arguments): Adjust calls.
255 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
257 * cp-ubsan.c: Don't include alloc-pool.h or lto-streamer.h.
259 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
261 * decl2.c (cpp_check): Deal with IS_CONSTEXPR.
263 2015-07-08 Jakub Jelinek <jakub@redhat.com>
265 * decl.c (grokfndecl): Handle flag_openmp_simd like flag_openmp.
266 * pt.c (apply_late_template_attributes): Likewise.
268 2015-07-08 Marek Polacek <polacek@redhat.com>
271 * tree.c (handle_abi_tag_attribute): Check for CLASS_TYPE_P before
272 accessing TYPE_LANG_SPECIFIC node.
274 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
276 * call.c: Adjust includes.
278 * constexpr.c: Likewise.
279 * cp-array-notation.c: Likewise.
280 * cp-gimplify.c: Likewise.
281 * cp-lang.c: Likewise.
282 * cp-objcp-common.c: Likewise.
283 * cp-ubsan.c: Likewise.
289 * except.c: Likewise.
291 * friend.c: Likewise.
293 * lambda.c: Likewise.
295 * mangle.c: Likewise.
296 * method.c: Likewise.
297 * name-lookup.c: Likewise.
298 * optimize.c: Likewise.
299 * parser.c: Likewise.
304 * search.c: Likewise.
305 * semantics.c: Likewise.
307 * typeck.c: Likewise.
308 * typeck2.c: Likewise.
310 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
312 * decl2.c (cpp_check): Deal with IS_MOVE_CONSTRUCTOR.
314 2015-07-06 Jason Merrill <jason@redhat.com>
316 * pt.c (reduce_template_parm_level): Also build the TYPE_DECL
317 for a template template parameter.
318 (tsubst_decl) [TEMPLATE_DECL]: Use the TEMPLATE_DECL built
319 by reduce_template_parm_level.
321 * pt.c (argument_pack_element_is_expansion_p): A decl pack is an
324 2015-07-02 Jason Merrill <jason@redhat.com>
327 * pt.c (for_each_template_parm_r) [UNDERLYING_TYPE]: Use
328 TYPE_VALUES_RAW rather than TYPE_FIELDS.
330 2015-07-02 Andrew Sutton <andrew.n.sutton@gmail.com>
332 * pt.c (type_dependent_expression_p): Handle expressions
333 that refer to variable templates.
335 2015-07-01 Jason Merrill <jason@redhat.com>
337 * lex.c (init_reswords): s/CXX0X/CXX11/.
338 * parser.c (cp_lexer_get_preprocessor_token): Likewise.
340 * mangle.c (write_CV_qualifiers_for_type, write_nested_name):
341 Attribute mangling is now -fabi-version=10.
344 * decl.c (cxx_init_decl_processing): Set TYPE_ALIGN of nullptr_t.
345 * class.c (layout_nonempty_base_or_field): Warn if that affects
346 the offset of a field.
348 2015-07-01 Paolo Carlini <paolo.carlini@oracle.com>
351 * parser.c (cp_parser_check_std_attribute): New.
352 (cp_parser_std_attribute_list): Call it.
354 2015-07-01 Patrick Palka <ppalka@gcc.gnu.org>
357 * pt.c (coerce_template_template_parm) [PARM_DECL]: Don't
358 return 0 if tsubst returns a dependent type.
360 2015-06-30 Jason Merrill <jason@redhat.com>
363 * decl2.c (is_late_template_attribute): True for tls_model.
366 * cp-tree.h (CP_DECL_THREAD_LOCAL_P): New.
367 (DECL_GNU_TLS_P): Use DECL_LANG_SPECIFIC field.
368 (SET_DECL_GNU_TLS_P): New.
369 * call.c (make_temporary_var_for_ref_to_temp): Use
370 CP_DECL_THREAD_LOCAL_P.
371 (set_up_extended_ref_temp): Likewise.
372 * decl.c (duplicate_decls, expand_static_init): Likewise.
373 (redeclaration_error_message, grokvardecl): Likewise.
374 (start_decl, register_dtor_fn, grokdeclarator): Likewise.
375 * decl2.c (get_guard, var_needs_tls_wrapper): Likewise.
376 (handle_tls_init): Likewise.
377 * pt.c (tsubst_decl, tsubst_copy_and_build): Likewise.
378 * semantics.c (finish_id_expression): Likewise.
379 (handle_omp_array_sections_1, finish_omp_clauses): Likewise.
380 (finish_omp_threadprivate): Likewise.
381 * tree.c (decl_storage_duration): Likewise.
382 * cp-gimplify.c (omp_var_to_track): Likewise.
383 (cp_genericize_r): Check that it matches DECL_THREAD_LOCAL_P.
384 * lex.c (retrofit_lang_decl): Return if DECL_LANG_SPECIFIC is
387 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
389 Implement N4197 - Adding u8 character literals
390 * parser.c (cp_parser_primary_expression()): Treat CPP_UTF8CHAR
391 and CPP_UTF8CHAR_USERDEF tokens;
392 (cp_parser_parenthesized_expression_list()): Treat CPP_UTF8CHAR token.
394 2015-06-29 Paolo Carlini <paolo.carlini@oracle.com>
397 * decl.c (grokfndecl): Allow constexpr declarations of friend
398 template specializations.
400 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
403 * decl.c (finish_function): Call do_warn_unused_parameter.
405 2015-06-29 Marek Polacek <polacek@redhat.com>
408 * decl.c (struct cp_switch): Add OUTSIDE_RANGE_P.
409 (push_switch): Set OUTSIDE_RANGE_P.
410 (pop_switch): Update c_do_switch_warnings call.
411 (finish_case_label): Update c_add_case_label call.
412 * semantics.c (finish_switch_cond): Don't warn about -Wswitch-bool
415 2015-06-27 Marek Polacek <polacek@redhat.com>
417 * call.c: Use VECTOR_TYPE_P.
418 * constexpr.c: Likewise.
423 * semantics.c: Likewise.
425 * typeck.c: Likewise.
426 * typeck2.c: Likewise.
428 2015-06-27 Marek Polacek <polacek@redhat.com>
430 * call.c (set_up_extended_ref_temp): Use VAR_P.
431 * class.c: Use VAR_P throughout.
432 * constexpr.c (cxx_eval_constant_expression): Use VAR_P.
433 * cp-array-notation.c (make_triplet_val_inv): Likewise.
434 * decl.c: Use VAR_OR_FUNCTION_DECL_P or VAR_P
437 * error.c (dump_decl): Use VAR_P.
438 * mangle.c (decl_implicit_alias_p): Likewise.
439 * parser.c: Use VAR_P throughout.
441 * semantics.c: Likewise.
442 * vtable-class-hierarchy.c: Likewise.
443 * tree.c (handle_abi_tag_attribute): Use VAR_OR_FUNCTION_DECL_P.
445 2015-06-27 Andreas Schwab <schwab@linux-m68k.org>
447 * pt.c (check_unstripped_args): Mark parameter as unused.
449 2015-06-26 Jason Merrill <jason@redhat.com>
452 * class.c (finish_struct): Call fixup_attribute_variants.
455 * typeck2.c (merge_exception_specifiers): Allow different
456 noexcept-specifiers if we've had errors.
459 * pt.c (check_unstripped_args): Split out from...
460 (retrieve_specialization): ...here. Allow typedefs in the type of
464 * mangle.c (write_nested_name): Limit TYPENAME_TYPE handling to
466 * mangle.c (write_template_args): Handle 0 length TREE_VEC.
469 * typeck2.c (digest_init_r): Only expect reshaping if the class is
472 2015-06-26 Marek Polacek <polacek@redhat.com>
474 * cp-array-notation.c (expand_sec_reduce_builtin): Use INDIRECT_REF_P.
475 * cp-ubsan.c (cp_ubsan_check_member_access_r): Likewise.
477 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
479 * call.c: Remove ipa-ref.h and plugin-api.h from include list.
481 * cp-ubsan.c: Likewise.
484 * lambda.c: Likewise.
485 * mangle.c: Likewise.
486 * method.c: Likewise.
487 * optimize.c: Likewise.
488 * parser.c: Likewise.
489 * semantics.c: Likewise.
491 * vtable-class-hierarchy.c: Likewise.
493 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
495 * constexpr.c (constexpr_fundef_hasher): Inherit from ggc_ptr_hash
496 rather than ggc_hasher.
497 (constexpr_call_hasher): Likewise.
498 * cp-tree.h (cxx_int_tree_map_hasher, named_label_hasher): Likewise.
499 * decl.c (typename_hasher): Likewise.
500 * mangle.c (conv_type_hasher): Likewise.
501 * pt.c (spec_hasher): Likewise.
502 * tree.c (cplus_array_hasher, list_hasher): Likewise.
503 * typeck2.c (abstract_type_hasher): Likewise.
505 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
507 * class.c (fixed_type_or_null_ref_ht): Inherit from nofree_ptr_hash
508 rather than pointer_hash.
509 (fixed_type_or_null): Use nofree_ptr_hash instead of pointer_hash.
510 * semantics.c (nrv_data): Likewise.
511 * tree.c (verify_stmt_tree_r, verify_stmt_tree): Likewise.
513 2015-06-24 Jason Merrill <jason@redhat.com>
516 * pt.c (dependent_type_p_r): Check for dependent alias template
517 specialization sooner.
520 * class.c (type_has_nontrivial_assignment): Remove.
521 * cp-tree.h: Remove declaration.
522 * init.c (vec_copy_assign_is_trivial): New.
523 (build_vec_init): Use it.
525 2015-06-24 Edward Smith-Rowland <3dw4rd@verizon.net>
527 Implement N3928 - Extending static_assert
528 * parser.c (cp_parser_static_assert): Support static_assert with
529 no message string. Supply an empty string in this case.
530 * semantics.c (finish_static_assert): Don't try to print a message if
531 the message strnig is empty.
533 2015-06-24 Adam Butcher <adam@jessamine.co.uk>
536 * parser.c (cp_parser_simple_type_specifier): Don't synthesize
537 implicit template parm if 'auto' is a placeholder for trailing
540 2015-06-24 Patrick Palka <ppalka@gcc.gnu.org>
543 2015-06-23 Patrick Palka <ppalka@gcc.gnu.org>
546 * parser.c (cp_parser_template_parameter_list): Update
547 current_template_parms right after processing a paramater.
548 * pt.c (template_parms_to_args): Remove obsolete hack for
549 giving template template arguments the proper level.
550 (check_default_tmpl_args): Account for tested template
552 (splite_late_return_type): Remove obsolete hack for giving
553 template template arguments the proper level.
555 2015-06-24 Paolo Carlini <paolo.carlini@oracle.com>
558 * decl.c (duplicate_decls): Adjust DECL_COMDAT of newdecl.
560 2015-06-23 Patrick Palka <ppalka@gcc.gnu.org>
563 * parser.c (cp_parser_template_parameter_list): Update
564 current_template_parms right after processing a paramater.
565 * pt.c (template_parms_to_args): Remove obsolete hack for
566 giving template template arguments the proper level.
567 (check_default_tmpl_args): Account for tested template
569 (splite_late_return_type): Remove obsolete hack for giving
570 template template arguments the proper level.
572 2015-06-23 Jason Merrill <jason@redhat.com>
575 * decl.c (grokfndecl): Check the linkage of ctype, not just
577 * tree.c (no_linkage_check): Skip the 'this' pointer.
580 * class.c (type_has_nontrivial_assignment): New.
581 * init.c (build_vec_init): Use it.
582 * cp-tree.h: Declare it.
583 * method.c (trivial_fn_p): Templates aren't trivial.
586 * decl.c (expand_static_init): Make sure the destructor is callable
587 here even if we have an initializer.
589 2015-06-04 Pierre-Marie de Rodat <derodat@adacore.com>
591 * lang-specs.h: Pass "-o %g.s" to cc1plus for headers even if
592 -fdump-ada-spec is passed.
594 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
596 * decl2.c (cpp_check): Deal with HAS_DEPENDENT_TEMPLATE_ARGS.
598 2015-06-22 Paolo Carlini <paolo.carlini@oracle.com>
600 * decl.c (grokdeclarator): Use declspecs->locations[ds_virtual].
602 2015-06-22 Paolo Carlini <paolo.carlini@oracle.com>
604 * decl.c (grokdeclarator): Remove pointless code.
606 2015-06-22 Jason Merrill <jason@redhat.com>
609 * call.c (implicit_conversion): Only reshape for classes.
611 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
613 * pt.c (maybe_adjust_types_for_deduction): Use std::swap instead of
615 * semantics.c (finish_omp_atomic): Likewise.
616 * typeck.c (cp_build_array_ref): Likewise.
618 2015-06-20 Mikhail Maltsev <maltsevm@gmail.com>
621 * call.c (build_new_op_1): Check tf_warning flag in all cases.
623 2015-06-19 Jason Merrill <jason@redhat.com>
626 * pt.c (instantiate_class_template_1): Clear
627 cp_unevaluated_operand and c_inhibit_evaluation_warnings.
630 * decl.c (build_ptrmemfunc_type): Check TYPE_GET_PTRMEMFUNC_TYPE after
632 * typeck.c (merge_types): build_ptrmemfunc_type before applying
633 quals and attributes.
636 * constexpr.c (build_constexpr_constructor_member_initializers):
637 Handle an empty STATEMENT_LIST.
640 * pt.c (tsubst_copy_and_build): Register a capture proxy in
641 local_specializations.
643 2015-06-17 Jason Merrill <jason@redhat.com>
646 * constexpr.c (cxx_eval_constant_expression): Handle TRY_BLOCK and
648 (potential_constant_expression_1): Likewise.
650 2015-06-17 Jason Merrill <jason@redhat.com>
653 * call.c (implicit_conversion): Call reshape_init here, early.
654 (build_aggr_conv): Not here.
656 2015-06-17 Jakub Jelinek <jakub@redhat.com>
659 * pt.c (tsubst_omp_clause_decl): New function.
660 (tsubst_omp_clauses): Use it or tsubst_copy instead of
661 tsubst_expr on OMP_CLAUSE_DECL.
663 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
665 * cp-lang.c (cxx_dwarf_name): Use anon_aggrname_p.
666 * cp-tree.h (TYPE_ANONYMOUS_P): Likewise.
667 * decl.c (grokdeclarator, xref_tag_1): Likewise.
668 * error.c (dump_aggr_type): likewise.
669 * pt.c (push_template_decl_real): Likewise.
670 * name-lookup.c (make_anon_name): Use anon_aggrname_format.
672 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
674 * call.c: Do not include input.h, line-map.h or is-a.h.
676 * constexpr.c: Likewise.
677 * cp-array-notation.c: Likewise.
678 * cp-gimplify.c: Likewise.
679 * cp-lang.c: Likewise.
680 * cp-objcp-common.c: Likewise.
681 * cp-tree.h: Likewise.
682 * cp-ubsan.c: Likewise.
688 * except.c: Likewise.
690 * friend.c: Likewise.
692 * lambda.c: Likewise.
694 * mangle.c: Likewise.
695 * method.c: Likewise.
696 * name-lookup.c: Likewise.
697 * optimize.c: Likewise.
698 * parser.c: Likewise.
703 * search.c: Likewise.
704 * semantics.c: Likewise.
706 * typeck.c: Likewise.
707 * typeck2.c: Likewise.
708 * vtable-class-hierarchy.c: Likewise.
710 2015-06-16 Paolo Carlini <paolo.carlini@oracle.com>
713 * parser.c (cp_parser_new_placement): Reject an empty expression-list.
715 2015-06-16 Jason Merrill <jason@redhat.com>
718 * tree.c (replace_placeholders_r) [CONSTRUCTOR]: Handle type
722 * tree.c (bot_manip): Remap SAVE_EXPR.
725 * pt.c (tsubst_copy) [VAR_DECL]: Use process_outer_var_ref.
727 2015-06-15 Nathan Sidwell <nathan@acm.org>
730 * cp-tree.h (DECL_INSTANTIATING_NSDMI_P): New.
731 * init.c (get_nsdmi): Check for DEFAULT_ARG in template case and
732 protect it from recursive instantiation.
734 2015-06-15 Paolo Carlini <paolo.carlini@oracle.com>
737 * decl2.c (no_linkage_error): Do not issue a permerror if the DECL
738 using a local type is pure virtual.
740 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
742 * call.c: Remove comment documenting the long-deleted
743 function build_method_call.
745 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
748 * typeck.c (cp_build_binary_op): Warn when comparing an address
749 of a reference against NULL.
751 2015-06-12 Jason Merrill <jason@redhat.com>
754 * pt.c (tsubst_decl) [VAR_DECL]: Mark namespace-scope
755 variables as DECL_NOT_REALLY_EXTERN.
757 2015-06-11 Jason Merrill <jason@redhat.com>
760 * constexpr.c (potential_constant_expression_1): Handle a
761 DECL_EXPR of TYPE_DECL.
764 * constexpr.c (cxx_eval_store_expression): Avoid messing up outer
767 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
769 * decl.c (cxx_init_decl_processing): Register the main
770 translation unit through the new debug hook.
772 2015-06-10 Jason Merrill <jason@redhat.com>
775 * cp-tree.h (TEMPLATE_DECL_COMPLEX_ALIAS_P): New.
776 * pt.c (push_template_decl_real): Set it.
777 (dependent_alias_template_spec_p): Use it.
778 (dependent_type_p_r): Use dependent_alias_template_spec_p.
779 (uses_all_template_parms_data, uses_all_template_parms_r)
780 (complex_alias_template_p): New.
781 (get_template_parm_index): Handle BOUND_TEMPLATE_TEMPLATE_PARM.
783 2015-06-09 Jason Merrill <jason@redhat.com>
787 * typeck2.c (digest_init_r): Replace previous change with
791 * semantics.c (process_outer_var_ref): Make sure the value is
792 actually constant before returning it.
793 * typeck.c (cp_build_array_ref): Allow subscripting non-lvalue
796 2015-06-09 Paolo Carlini <paolo.carlini@oracle.com>
799 * typeck2.c (digest_nsdmi_init): On aggregates use reshape_init.
800 * init.c (expand_default_init): Likewise.
802 2015-06-09 Jason Merrill <jason@redhat.com>
805 * tree.c (replace_placeholders_r): Handle placeholders for an
807 * typeck2.c (store_init_value): Only replace_placeholders for
808 objects of class type.
810 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
812 * call.c : Adjust include files.
813 * class.c : Likewise.
814 * constexpr.c : Likewise.
815 * cp-array-notation.c : Likewise.
816 * cp-cilkplus.c : Likewise.
817 * cp-gimplify.c : Likewise.
818 * cp-lang.c : Likewise.
819 * cp-objcp-common.c : Likewise.
820 * cp-tree.h : Likewise.
821 * cp-ubsan.c : Likewise.
824 * decl2.c : Likewise.
826 * error.c : Likewise.
827 * except.c : Likewise.
829 * friend.c : Likewise.
831 * lambda.c : Likewise.
833 * mangle.c : Likewise.
834 * method.c : Likewise.
835 * name-lookup.c : Likewise.
836 * optimize.c : Likewise.
837 * parser.c : Likewise.
839 * ptree.c : Likewise.
842 * search.c : Likewise.
843 * semantics.c : Likewise.
845 * typeck.c : Likewise.
846 * typeck2.c : Likewise.
847 * vtable-class-hierarchy.c : Likewise.
849 2015-06-05 Jason Merrill <jason@redhat.com>
852 * pt.c (argument_pack_element_is_expansion_p): Return 2 if
853 the expansion has extra args.
854 (use_pack_expansion_extra_args_p): Return true in that case.
857 * pt.c (type_dependent_expression_p): EXPR_PACK_EXPANSION is
858 dependent even if it has a type.
860 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
862 * cp-objcp-common.c: Adjust comment for
863 cxx_warn_unused_global_decl.
864 * cp-objcp-common.h (LANG_HOOKS_WRITE_GLOBALS): Remove
865 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
866 * cp-tree.h (note_mangling_alias): Protoize.
867 (cp_write_global_declarations): Remove.
868 (cxx_post_compilation_parsing_cleanups): Protoize.
869 * decl.c (wrapup_globals_for_namespace): Remove use of DATA
871 * decl2.c (mangling_aliases): New global.
872 (build_java_method_aliases): New. Adapted from
873 collect_candidates_for_java_method_aliases.
874 (collect_candidates_for_java_method_aliases): Remove.
875 (build_java_method_aliases): Remove.
876 (generate_mangling_aliases): New.
877 (note_mangling_alias): New. Moved from mangle_decl.
878 (locus_at_end_of_parsing): New global.
879 (c_parse_final_cleanups): Rename from
880 cp_write_global_declarations.
881 Use locus_at_end_of_parsing.
882 Call generate_mangling_aliases.
883 Rename call to collect_candidates_for_java_method_aliases into
884 build_java_method_aliases.
885 Remove call to finalize_compilation_unit.
886 Move vtable handling into cxx_post_compilation_parsing_cleanups.
887 Do not call check_global_declarations or
888 emit_debug_global_declarations.
889 (cxx_post_compilation_parsing_cleanups): New.
890 * mangle.c (mangle_decl): Move code to note_mangling_alias.
891 * name-lookup.c (do_namespace_alias): Call early_global_decl.
893 2015-06-05 Nathan Sidwell <nathan@acm.org>
896 * parser.c (cp_parser_cache_defarg): Continue looking for
897 declarators when scanning a potential template argument list of an
900 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
902 * call.c: Adjust includes for restructured coretypes.h.
904 * constexpr.c: Likewise.
905 * cp-array-notation.c: Likewise.
906 * cp-gimplify.c: Likewise.
907 * cp-lang.c: Likewise.
908 * cp-objcp-common.c: Likewise.
909 * cp-tree.h: Likewise.
910 * cp-ubsan.c: Likewise.
916 * except.c: Likewise.
918 * friend.c: Likewise.
920 * lambda.c: Likewise.
922 * mangle.c: Likewise.
923 * method.c: Likewise.
924 * name-lookup.c: Likewise.
925 * optimize.c: Likewise.
926 * parser.c: Likewise.
931 * search.c: Likewise.
932 * semantics.c: Likewise.
934 * typeck.c: Likewise.
935 * typeck2.c: Likewise.
936 * vtable-class-hierarchy.c: Likewise.
938 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
942 * cp-tree.h (get_guard_cond): Adjust declaration
943 * decl.c (expand_static_init): Use atomic load acquire
944 and adjust call to get_guard_cond.
945 * decl2.c (build_atomic_load_byte): New function.
946 (get_guard_cond): Handle thread_safety.
947 (one_static_initialization_or_destruction): Adjust call to
950 2015-06-03 Jason Merrill <jason@redhat.com>
953 * mangle.c (mangle_decl): Always SET_IDENTIFIER_GLOBAL_VALUE.
954 (write_CV_qualifiers_for_type): Set G.need_abi_warning.
955 (decl_implicit_alias_p): Split out from maybe_remove_implicit_alias.
956 * cp-tree.h (DECL_REALLY_EXTERN): Handle null DECL_LANG_SPECIFIC.
958 2015-06-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
959 Paolo Carlini <paolo.carlini@oracle.com>
962 * typeck.c (invalid_nonstatic_memfn_p): Add location_t parameter and
963 use it in the diagnostic.
964 (decay_conversion): Adjust call.
965 * semantics.c (finish_decltype_type): Likewise.
966 * call.c (resolve_args, build_new_op_1,
967 perform_implicit_conversion_flags): Adjust calls.
968 * cvt.c (ocp_convert, convert_to_void): Likewise.
969 * cp-tree.h (invalid_nonstatic_memfn_p): Update declaration.
971 2015-06-03 Paolo Carlini <paolo.carlini@oracle.com>
973 * decl.c (check_tag_decl): Use declspecs->locations as locations in
974 error_at and warning_at calls.
976 2015-06-03 Marek Polacek <polacek@redhat.com>
979 * cp-gimplify.c (struct cp_genericize_data): Add no_sanitize_p.
980 (cp_genericize_r): Don't instrument static initializers.
981 (cp_genericize_tree): Initialize wtd.no_sanitize_p.
983 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
985 * decl.c (start_function): Call plugin before parsing.
986 (finish_function): Call plugin after parsing.
988 2015-06-02 Patrick Palka <patrick@parcs.ath.cx>
990 * cp-tree.h (init_error): Remove declaration.
991 * error.c (scratch_pretty_printer): Rename to ...
992 (actual_pretty_printer): ... this.
993 (cxx_pp): Constify and update accordingly.
994 (init_error): Remove definition.
995 * lex.c (cxx_init): Do not call init_error.
997 2015-06-02 Paolo Carlini <paolo.carlini@oracle.com>
1000 * parser.c (cp_parser_mem_initializer): Allow for decltype-specifier.
1002 2015-06-01 Jason Merrill <jason@redhat.com>
1005 * decl2.c (mark_used): Don't always instantiate constexpr fns.
1006 * constexpr.c (cxx_eval_call_expression): Instantiate them here.
1009 * mangle.c (attr_strcmp): New.
1010 (write_CV_qualifiers_for_type): Also write out attributes that
1011 affect type identity.
1012 (write_type): Strip all attributes after writing qualifiers.
1014 2015-05-31 Jason Merrill <jason@redhat.com>
1016 * constexpr.c (cxx_eval_indirect_ref): Try folding first.
1019 * constexpr.c (cxx_eval_constant_expression): Treat a placeholder
1020 with the wrong type as non-constant.
1022 2015-05-27 Jason Merrill <jason@redhat.com>
1024 * decl.c (check_redeclaration_exception_specification): Depend on
1025 -Wsystem-headers rather than -pedantic.
1027 * decl.c (warn_extern_redeclared_static): Use the location of
1028 newdecl in diagnostics, not input_location.
1029 (validate_constexpr_redeclaration): Likewise.
1030 (check_redeclaration_no_default_args): Likewise.
1031 (duplicate_decls): Likewise.
1032 (check_redeclaration_exception_specification): Likewise.
1033 Change second diagnostic to inform.
1035 2015-05-24 Nathan Sidwell <nathan@acm.org>
1038 * decl.c (build_enumerator): Don't silently convert scoped enums.
1040 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
1043 * mangle.c (mangle_decl): Mangle anonymous namespace types as
1046 2015-05-23 Nathan Sidwell <nathan@acm.org>
1049 * pt.c (lookup_template_class_1): Copy may_alias attribute too.
1051 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
1053 * Make-lang.in (check_g++_parallelize): Update comment.
1055 2015-05-22 Paolo Carlini <paolo.carlini@oracle.com>
1058 * decl.c (grokdeclarator): Use the correct location in error
1059 messages about 'explicit'.
1061 2015-05-22 Marek Polacek <polacek@redhat.com>
1062 Edward Smith-Rowland <3dw4rd@verizon.net>
1065 * cp-tree.h (build_enumerator): Update declaration.
1066 * decl.c (build_enumerator): Add attributes parameter. Call
1067 cplus_decl_attributes.
1068 * init.c (constant_value_1): Pass tf_none to mark_used.
1069 * parser.c (cp_parser_enumerator_definition): Parse attributes and
1070 pass them down to build_enumerator.
1071 * pt.c (tsubst_enum): Pass decl attributes to build_enumerator.
1072 * semantics.c (finish_id_expression): Don't warn_deprecated_use here.
1074 2015-05-21 Nathan Sidwell <nathan@acm.org>
1077 * decl2.c (change_return_type): Propagate FUNCTION_REF_QUALIFIED.
1079 2015-05-21 Marek Polacek <polacek@redhat.com>
1081 * typeck.c (warn_args_num): Don't print "declare here" for builtins.
1083 2015-05-20 Jason Merrill <jason@redhat.com>
1085 * pt.c (tsubst_decl) [VAR_DECL]: SET_DECL_IMPLICIT_INSTANTIATION
1086 before register_specialization.
1088 * decl.c (grok_op_properties): Don't complain about size_t
1089 placement delete here.
1090 * call.c (second_parm_is_size_t): Split out from...
1091 (non_placement_deallocation_fn_p): ...here.
1092 (build_op_delete_call): Warn about size_t placement delete with
1095 2015-05-19 Nathan Sidwell <nathan@acm.org>
1098 * typeck.c (finish_class_member_access_expr): Diagnose failed
1099 lookup of enum class member.
1101 2015-05-19 Jakub Jelinek <jakub@redhat.com>
1104 * parser.c (cp_parser_omp_for_loop): Don't add
1105 OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
1106 OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
1107 (cp_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
1110 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1112 * typeck.c (composite_pointer_type): Use std::swap instead of explicit
1115 2015-05-18 Jason Merrill <jason@redhat.com>
1117 * pt.c (retrieve_specialization): Make sure our arguments have
1118 gone through strip_typedefs.
1120 * pt.c (tsubst_decl) [VAR_DECL]: Call coerce_innermost_template_parms.
1121 (determine_specialization): Call coerce_template_parms.
1124 * pt.c (type_unification_real): Check convertibility here.
1125 (unify_one_argument): Not here.
1127 * tree.c (strip_typedefs_expr) [TRAIT_EXPR]: Fix typo.
1128 (strip_typedefs) [DECLTYPE_TYPE]: Fix typedef of decltype.
1129 [TREE_LIST]: Fix no-change case.
1131 * ptree.c (cxx_print_xnode): Handle TRAIT_EXPR.
1133 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1136 * error.c (cp_diagnostic_starter): Use diagnostic_location
1138 (cp_print_error_function): Likewise.
1139 (cp_printer): Replace locus pointer with accessor function.
1141 2015-05-12 David Malcolm <dmalcolm@redhat.com>
1143 * parser.c (cp_parser_selection_statement): Add location and
1144 guard_kind arguments to calls to
1145 cp_parser_implicitly_scoped_statement.
1146 (cp_parser_iteration_statement): Likewise for calls to
1147 cp_parser_already_scoped_statement.
1148 (cp_parser_implicitly_scoped_statement): Add "guard_loc" and
1149 "guard_kind" params; use them to warn for misleading
1151 (cp_parser_already_scoped_statement): Likewise.
1153 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
1155 * class.c (fixup_type_variants): Do not copy TYPE_METHODS
1156 (one_inheriting_sig): Assert tat we always set TYPE_METHODS of main variant.
1157 * semantics.c (finish_member_declaration): Likewise.
1158 * method.c (lazily_declare_fn): Allways add method to main variant list.
1160 2015-05-09 Aldy Hernandez <aldyh@redhat.com>
1163 * decl2.c (note_mangling_alias): Declare arguments as unused.
1165 2015-05-08 Jason Merrill <jason@redhat.com>
1167 * cp-gimplify.c, parser.c: Adjust to -Wc++11-compat replacing
1170 2015-05-08 Jason Merrill <jason@redhat.com>
1172 * decl2.c (mangling_aliases): New variable.
1173 (note_mangling_alias, generate_mangling_aliases): New.
1174 (cp_write_global_declarations): Call generate_mangling_aliases.
1175 (generate_mangling_alias): Split out from...
1176 * mangle.c (mangle_decl): ...here.
1177 * cp-tree.h: Declare note_mangling_alias.
1179 2015-05-08 Aldy Hernandez <aldyh@redhat.com>
1181 * decl2.c (collect_candidates_for_java_method_aliases): Remove.
1182 (build_java_method_aliases): Adapt to use create_same_body_alias
1183 instead of assemble_alias. Move variable declarations to
1184 definition and tidy up.
1185 (cp_write_global_declarations): Call build_java_method_aliases
1186 instead of collecting candidates first.
1188 2015-05-07 Jason Merrill <jason@redhat.com>
1191 * parser.c (cp_parser_std_attribute_list): Handle attribute expansion.
1192 (cp_parser_std_attribute_spec): Handle alignas pack expansion.
1193 * decl2.c (is_late_template_attribute): An attribute exp is dependent.
1194 * pt.c (make_pack_expansion): Allow TREE_LIST for attribute expansion.
1195 (apply_late_template_attributes): Handle attribute pack expansion.
1197 2015-05-07 Marek Polacek <polacek@redhat.com>
1200 * typeck.c (cp_build_binary_op): Warn when left shifting a negative
1203 2015-05-07 Jason Merrill <jason@redhat.com>
1207 * typeck2.c (digest_init_r): Fix single element list.
1209 2015-05-05 Jason Merrill <jason@redhat.com>
1211 * cp-gimplify.c (cp_genericize_r): Track TRY_BLOCK and
1212 MUST_NOT_THROW_EXPR, warn about a THROW_EXPR directly within a
1213 MUST_NOT_THROW_EXPR.
1214 (cp_genericize_data): Add try_block field.
1215 (cp_genericize_tree): Initialize it.
1216 * except.c (expand_end_catch_block): Set TREE_NO_WARNING on
1219 * constexpr.c (potential_constant_expression_1) [AT_ENCODE_EXPR]:
1222 * semantics.c (finish_call_expr): Check complain.
1224 * decl2.c (reset_type_linkage_2): Update the DECL_NAME of a
1225 maybe-in-charge constructor.
1227 * decl.c (start_decl): Don't push the plain VAR_DECL for a
1234 * call.c (convert_like_real): Check value-initialization before
1236 * typeck2.c (process_init_constructor_record): Don't set
1237 CONSTRUCTOR_IS_DIRECT_INIT.
1238 (process_init_constructor_array): Likewise.
1239 * init.c (build_vec_init): Likewise.
1241 2015-05-05 David Malcolm <dmalcolm@redhat.com>
1243 * parser.c (cp_parser_asm_definition): Only test for
1244 error_mark_node if "outputs" was just set. Likewise for "inputs".
1246 2015-05-04 Paolo Carlini <paolo.carlini@oracle.com>
1247 Jakub Jelinek <jakub@redhat.com>
1250 * typeck2.c (check_narrowing): Check by-hand that the pedwarn didn't
1251 result in an actual error.
1253 2015-05-01 Paolo Carlini <paolo.carlini@oracle.com>
1254 Prathamesh Kulharni <prathamesh.kulkarni@linaro.org>
1257 * typeck2.c (check_narrowing): Set ok = true when pedwarn returns
1260 2015-04-30 David Malcolm <dmalcolm@redhat.com>
1262 * cp-tree.h (ARGUMENT_PACK_SELECT_ARG): Remove spurious
1265 2015-04-29 Jason Merrill <jason@redhat.com>
1268 * tree.c (apply_identity_attributes): Fix handling of classes.
1270 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
1272 * parser.c (cp_parser_oacc_enter_exit_data): Use
1273 OMP_STANDALONE_CLAUSES.
1275 2015-04-29 Paolo Carlini <paolo.carlini@oracle.com>
1278 * init.c (perform_member_init): Handle references for -Winit-self.
1280 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
1282 * pt.c (tsubst_expr) <OMP_TARGET_UPDATE>: Use
1283 OMP_TARGET_UPDATE_CLAUSES instead of OMP_CLAUSES.
1285 2015-04-28 Jason Merrill <jason@redhat.com>
1288 * constexpr.c (cxx_eval_store_expression): Don't try to actually
1289 store an empty class.
1292 * constexpr.c (cxx_eval_builtin_function_call): Fix
1293 __builtin_constant_p.
1296 * tree.c (strip_typedefs): Add remove_attributes parm.
1297 (strip_typedefs_expr): Likewise.
1298 (apply_identity_attributes): New subroutine of strip_typedefs.
1299 * pt.c (canonicalize_type_argument): Let strip_typedefs handle attrs.
1300 (convert_nontype_argument, unify): Likewise.
1301 * cp-tree.h: Adjust.
1304 * class.c (fixup_attribute_variants): Respect TYPE_USER_ALIGN.
1306 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1308 * class.c (layout_class_type): Remove check if
1309 PCC_BITFIELD_TYPE_MATTERS is defined.
1311 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
1313 * Make-lang.in (c++.mostlyclean): Remove xg++, g++-cross, and cc1plus.
1315 2015-04-24 Jason Merrill <jason@redhat.com>
1318 * typeck.c (structural_comptypes): Don't check TYPE_REF_CAN_ALIAS_ALL.
1320 * constexpr.c (potential_constant_expression_1) [MINUS_EXPR]:
1321 Remove obsolete code.
1322 [NE_EXPR]: Likewise.
1324 2015-04-23 Jason Merrill <jason@redhat.com>
1327 * pt.c (check_explicit_specialization): Don't
1328 SET_DECL_TEMPLATE_SPECIALIZATION for a variable with no template
1330 * decl.c (grokvardecl): Revert earlier fix.
1332 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
1335 * typeck2.c (check_narrowing): In C++11 mode too, -Wno-narrowing
1336 suppresses the diagnostic.
1338 2015-04-20 Ville Voutilainen <ville.voutilainen@gmail.com>
1340 Reject trailing return type for an operator auto().
1341 * decl.c (grokdeclarator): Reject trailing return types for
1342 all conversion operators, don't handle conversion operators
1343 in the previous checks that deal with auto.
1345 2015-04-20 Ilya Verbin <ilya.verbin@intel.com>
1347 * parser.c (cp_parser_omp_target_update): Add missed %> to error_at ().
1349 2015-04-16 Paolo Carlini <paolo.carlini@oracle.com>
1351 * class.c (resolve_address_of_overloaded_function, instantiate_type):
1352 Rename tsubst_flags_t parameter flags -> complain.
1354 2015-04-16 Paolo Carlini <paolo.carlini@oracle.com>
1356 * call.c (build_op_delete_call, build_over_call): Check mark_used
1358 * class.c (resolve_address_of_overloaded_function): Likewise.
1359 * decl.c (cxx_maybe_build_cleanup): Likewise.
1360 * pt.c (gen_elem_of_pack_expansion_instantiation, tsubst_baselink,
1361 tsubst_qualified_id, tsubst_copy, tsubst_copy_and_build): Likewise.
1362 * rtti.c (build_dynamic_cast_1): Likewise.
1363 * semantics.c (process_outer_var_ref): Likewise.
1364 * typeck.c (build_class_member_access_expr,
1365 cp_build_function_call_vec, cp_build_addr_expr_1): Likewise.
1367 2015-04-15 Jason Merrill <jason@redhat.com>
1369 * constexpr.c (cxx_eval_store_expression): Ignore clobbers.
1370 (build_constexpr_constructor_member_initializers): Loop to find
1372 * decl.c (start_preparsed_function): Clobber the object at the
1373 beginning of a constructor.
1375 * decl.c (grokmethod): Only set DECL_COMDAT if TREE_PUBLIC is set.
1376 * method.c (implicitly_declare_fn): Likewise.
1377 * decl2.c (vague_linkage_p): Check TREE_PUBLIC first.
1379 * decl2.c (determine_visibility): Use get_template_info.
1381 2015-04-15 Jason Merrill <jason@redhat.com>
1382 Marek Polacek <polacek@redhat.com>
1385 * lambda.c (lambda_expr_this_capture): In unevaluated context go
1386 through the normal loop, just don't capture.
1387 (maybe_resolve_dummy): Handle null return.
1389 2015-04-15 Paolo Carlini <paolo.carlini@oracle.com>
1391 * call.c (enforce_access): Emit error + inform.
1393 2015-04-15 Marek Polacek <polacek@redhat.com>
1395 * constexpr.c (use_new_call): Remove #define.
1396 (lookup_parameter_binding): Remove function.
1397 (cxx_bind_parameters_in_call): Remove unused code.
1398 (cxx_eval_call_expression): Likewise.
1399 (cxx_eval_constant_expression): Likewise.
1401 2015-04-14 Mikhail Maltsev <maltsevm@gmail.com>
1403 * tree.c (replace_placeholders_t): Remove unused type.
1404 (replace_placeholders): Remove unused pset.
1406 2015-04-14 Jason Merrill <jason@redhat.com>
1408 * pt.c (lookup_template_class_1): Use coerce_innermost_template_parms.
1411 * cvt.c (cp_fold_convert): Avoid wrapping PTRMEM_CST in NOP_EXPR.
1414 * name-lookup.c (do_class_using_decl): Complain about specifying
1415 the current class even if there are dependent bases.
1417 2015-04-14 David Krauss <david_work@me.com>
1420 * decl.c (grokdeclarator): Do not flag friends with deduced return.
1422 2015-04-14 Momchil Velikov <momchil.velikov@gmail.com>
1423 Jason Merrill <jason@redhat.com>
1426 * parser.c (cp_parser_class_name): Add enum_ok parameter.
1427 (cp_parser_qualifying_entity): Use it instead of cp_parser_type_name.
1428 (cp_parser_diagnose_invalid_type_name): Don't assume a template is
1431 2015-04-12 Jakub Jelinek <jakub@redhat.com>
1434 * constexpr.c (cxx_eval_pointer_plus_expression): Don't fold for VLAs,
1435 don't fold if op01 isn't divisible by TYPE_SIZE_UNIT. Convert
1436 the expression to the original type at the end.
1438 2015-04-09 Jakub Jelinek <jakub@redhat.com>
1441 * tree.c (cp_build_qualified_type_real): Copy TYPE_ALIGN and
1445 * tree.c (build_cplus_array_type): Layout type before variants are
1446 set, but copy over TYPE_SIZE and TYPE_SIZE_UNIT from the main
1449 2015-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1452 * lambda.c (add_capture): Use dependent_type_p for capture by
1455 2015-04-02 Marek Polacek <polacek@redhat.com>
1458 * constexpr.c (cxx_eval_pointer_plus_expression): Call
1459 cxx_eval_constant_expression on the first operand.
1461 2015-04-01 Jason Merrill <jason@redhat.com>
1464 * decl.c (make_typename_type): Handle seeing a variable template.
1466 2015-04-01 Paolo Carlini <paolo.carlini@oracle.com>
1469 * pt.c (instantiating_current_function_p): New.
1470 * name-lookup.c (pushdecl_maybe_friend_1): Use it.
1471 * cp-tree.h (instantiating_current_function_p): Declare.
1473 2015-04-01 Jason Merrill <jason@redhat.com>
1476 * decl.c (grokvardecl): Don't call check_explicit_specialization
1477 for non-template members of a class template.
1479 2015-04-01 Marek Polacek <polacek@redhat.com>
1482 * class.c (finish_struct): Require that the second field of a
1483 user-defined initializer_list be of size type.
1485 2015-03-31 Marek Polacek <polacek@redhat.com>
1488 * tree.c (build_cplus_array_type): Use dependent_type_p rather than
1489 checking for constness.
1491 2015-03-30 Marek Polacek <polacek@redhat.com>
1494 * constexpr.c (cxx_fold_indirect_ref): Don't perform the
1495 *(&A[i] p+ j) => A[i + j] transformation here.
1496 (cxx_eval_pointer_plus_expression): New function.
1497 (cxx_eval_constant_expression): Use it here.
1499 2015-03-27 Tobias Burnus <burnus@net-b.de>
1502 * parser.c (cp_parser_omp_for, cp_parser_omp_parallel,
1503 cp_parser_omp_distribute, cp_parser_omp_teams, cp_parser_omp_target,
1504 cp_parser_omp_declare): Don't show error for skipped omp pragmas with
1507 2015-03-27 Marek Polacek <polacek@redhat.com>
1510 * semantics.c (finish_switch_cond): If the unlowered type is not an
1511 enum, use the type of the condition.
1513 2015-03-27 Jason Merrill <jason@redhat.com>
1516 * decl.c (make_rtl_for_nonlocal_decl): Don't defer static
1519 2015-03-26 Mikhail Maltsev <maltsevm@gmail.com>
1522 * init.c (build_vec_init): Fix initializing aggregates
1523 with empty init list.
1525 2015-03-26 Jason Merrill <jason@redhat.com>
1528 * constexpr.c (potential_constant_expression_1): Handle MEM_REF.
1530 2015-03-25 Marek Polacek <polacek@redhat.com>
1533 * name-lookup.c (handle_namespace_attrs): Ignore abi_tag attribute
1534 on an anonymous namespace.
1536 2015-03-25 Marek Polacek <polacek@redhat.com>
1539 * class.c (remove_zero_width_bit_fields): Check for null DECL_SIZE.
1541 2015-03-24 Jason Merrill <jason@redhat.com>
1544 * cp-tree.h (NAMESPACE_IS_INLINE): Remove.
1545 * parser.c (cp_parser_namespace_definition): Don't set it.
1546 * name-lookup.c (handle_namespace_attrs): Check
1547 DECL_NAMESPACE_ASSOCIATIONS instead.
1550 * pt.c (get_mostly_instantiated_function_type): Just return the
1551 type of the partially instantiated template in DECL_TI_TEMPLATE.
1553 2015-03-20 Marek Polacek <polacek@redhat.com>
1556 * constexpr.c (cxx_fold_indirect_ref): Transform *(&A[i] p+ j) into
1559 2015-03-20 Marek Polacek <polacek@redhat.com>
1562 * typeck.c (lookup_anon_field): Make sure we're dealing with the main
1565 2015-03-19 Jason Merrill <jason@redhat.com>
1568 Automatically propagate ABI tags to variables and functions
1569 from their (return) type.
1570 * class.c (check_tag): Handle variables and functions.
1571 (mark_or_check_attr_tags): Split out from find_abi_tags_r.
1572 (mark_or_check_tags): Likewise.
1573 (mark_abi_tags): Use it. Rename from mark_type_abi_tags.
1574 (check_abi_tags): Add single argument overload for decls.
1575 Handle inheriting tags for decls.
1576 * mangle.c (write_mangled_name): Call it.
1577 (mangle_return_type_p): Split out from write_encoding.
1578 (unmangled_name_p): Split out from write_mangled_name.
1579 (write_mangled_name): Ignore abi_tag on namespace.
1580 * cp-tree.h (NAMESPACE_IS_INLINE): Replace NAMESPACE_ABI_TAG.
1581 * parser.c (cp_parser_namespace_definition): Set it.
1582 * name-lookup.c (handle_namespace_attrs): Use arguments. Warn
1583 about abi_tag attribute on non-inline namespace.
1584 * tree.c (check_abi_tag_args): Split out from handle_abi_tag_attribute.
1585 (handle_abi_tag_attribute): Allow tags on variables.
1587 2015-03-19 Jakub Jelinek <jakub@redhat.com>
1589 * decl2.c (cplus_decl_attributes): Also add "omp declare target"
1590 attribute for DECL_EXTERNAL VAR_DECLs.
1592 2015-03-18 Paolo Carlini <paolo.carlini@oracle.com>
1595 * call.c (build_over_call): Pass the tsubst_flags_t argument to
1597 * decl2.c (mark_used): Inline the require_deduced_type call and
1598 guard the error call.
1600 2015-03-16 Jason Merrill <jason@redhat.com>
1603 * parser.c (cp_parser_template_name): Call strip_using_decl.
1605 2015-03-16 Marek Polacek <polacek@redhat.com>
1609 * decl.c (grokdeclarator): Allow volatile and constexpr together.
1611 2015-03-12 Paolo Carlini <paolo.carlini@oracle.com>
1614 * decl.c (check_default_argument): Don't call
1615 maybe_warn_zero_as_null_pointer_constant.
1617 2015-03-11 Aldy Hernandez <aldyh@redhat.com>
1619 * cp-gimplify.c (simple_empty_class_p): New.
1620 * cp-gimplify.c (cp_gimplify_expr): Handle RETURN_EXPR. Abstract
1621 the code for empty class copies into simple_empty_class_p, and
1622 adapt it to handle COMPOUND_EXPRs.
1624 2015-03-10 Paolo Carlini <paolo.carlini@oracle.com>
1627 * decl.c (duplicate_decls): Call check_redeclaration_no_default_args
1628 only if the location of newdecl doesn't match the location of olddecl.
1630 2015-03-10 Jakub Jelinek <jakub@redhat.com>
1633 * parser.c (parsing_nsdmi): Don't return true if current_class_ptr
1636 2015-03-10 Jason Merrill <jason@redhat.com>
1640 * pt.c (dependent_type_p_r): Check both class and alias template args.
1642 2015-03-10 Jakub Jelinek <jakub@redhat.com>
1645 * parser.c (cp_parser_binary_expression): Check for tcc_comparison
1646 before preparing arguments to warn_logical_not_parentheses.
1647 Use maybe_constant_value on rhs.
1649 2015-03-09 Jason Merrill <jason@redhat.com>
1652 * call.c: Don't call maybe_resolve_dummy when calling a constructor.
1654 2015-03-09 Jakub Jelinek <jakub@redhat.com>
1657 * parser.c (cp_parser_binary_expression): Don't warn for
1658 !!x == y or !b == y where b is bool.
1660 2015-03-06 Aldy Hernandez <aldyh@redhat.com>
1662 * ptree.c (cxx_print_lambda_node): New.
1663 (cxx_print_xnode): Handle LAMBDA_EXPR.
1665 2015-03-03 Aldy Hernandez <aldyh@redhat.com>
1668 * constexpr.c (cxx_eval_constant_expression): Remove assert in
1669 RESULT_DECL handling.
1671 2015-02-26 Marek Polacek <polacek@redhat.com>
1674 * constexpr.c (cxx_eval_constant_expression): Don't evaluate
1675 a RETURN_EXPR if its operand is null.
1677 2015-02-25 Jason Merrill <jason@redhat.com>
1680 * decl2.c (constrain_visibility) [VISIBILITY_ANON]: Clear
1682 (constrain_visibility_for_template): Handle reference arguments.
1685 * decl.c (start_preparsed_function): Use create_artificial_label
1688 2015-02-17 Paolo Carlini <paolo.carlini@oracle.com>
1689 Jakub Jelinek <jakub@redhat.com>
1692 * constexpr.c (check_constexpr_bind_expr_vars): Allow
1693 implicit typedefs for lambda types.
1695 2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
1698 * decl.c (lookup_and_check_tag): Use strip_using_decl.
1700 2015-02-13 Jason Merrill <jason@redhat.com>
1703 * pt.c (template_args_equal): Look through conversions here.
1704 * tree.c (cp_tree_equal): Not here.
1706 2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
1709 * parser.c (cp_parser_pragma): Diagnose PRAGMA_IVDEP at
1710 pragma_external context.
1712 2015-02-13 Jason Merrill <jason@redhat.com>
1715 * call.c (reference_binding): Don't look for bad conversion
1716 if TO is incomplete.
1718 2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
1721 * decl.c (make_typename_type): Pass tsubst_flags_t argument
1722 to lookup_template_class.
1724 2015-02-13 Jakub Jelinek <jakub@redhat.com>
1727 * decl.c (start_preparsed_function): Use void_type_node instead
1728 of NULL_TREE as LABEL_DECL type.
1730 2015-02-12 Jason Merrill <jason@redhat.com>
1733 * mangle.c (write_mangled_name): Fix test for variable template
1736 * decl.c (begin_destructor_body): Condition clobber on
1739 2015-02-12 Andrea Azzarone <azzaronea@gmail.com>
1742 * parser.c (lookup_literal_operator): Return all candidates.
1743 (cp_parser_userdef_char_literal): Simplify error handling.
1744 (cp_parser_userdef_numeric_literal): Pass tf_warning_or_error.
1745 (cp_parser_userdef_string_literal): Pass tf_warning_or_error.
1746 Also give higher priority to standard string UDL operator.
1748 2015-02-12 Jakub Jelinek <jakub@redhat.com>
1751 * cp-tree.h (BLOCK_OUTER_CURLY_BRACE_P): Define.
1752 * decl.c (poplevel): If functionbody, try not to create an extra
1753 BLOCK for function body and use subblocks as that, if it is non-NULL
1754 and doesn't have siblings. Set BLOCK_OUTER_CURLY_BRACE_P flag.
1755 (outer_curly_brace_block): Use BLOCK_OUTER_CURLY_BRACE_P flag.
1758 * except.c (check_noexcept_r): Return NULL for internal
1761 2015-02-10 Jason Merrill <jason@redhat.com>
1764 * constexpr.c (cxx_eval_call_expression): Walk the clone list.
1766 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
1769 * method.c (use_thunk): Do not check for stdarg thunks.
1771 2015-02-06 Jason Merrill <jason@redhat.com>
1774 * init.c (build_vec_init): Handle default-initialized array with
1775 constexpr default constructor.
1777 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1781 * parser.c (cp_parser_omp_atomic): Handle RDIV_EXPR.
1783 2015-02-03 Paolo Carlini <paolo.carlini@oracle.com>
1786 * typeck.c (cp_build_binary_op): Avoid spurious -Waddress warnings
1787 for generated expressions.
1789 2015-02-02 Ville Voutilainen <ville.voutilainen@gmail.com>
1792 * decl.c (duplicate_decls): Also duplicate DECL_FINAL_P and
1795 2015-02-02 Jason Merrill <jason@redhat.com>
1797 * tree.c (handle_abi_tag_attribute): Diagnose invalid arguments.
1799 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1801 * class.c, except.c, parser.c, pt.c: All callers of fatal_error
1802 changed to pass input_location as first argument.
1804 2015-01-29 Jakub Jelinek <jakub@redhat.com>
1807 * cp-ubsan.c (cp_ubsan_instrument_vptr): Don't wrap vptr
1810 2015-01-29 Jason Merrill <jason@redhat.com>
1813 * semantics.c (finish_return_stmt): Suppress -Wreturn-type on
1814 erroneous return statement.
1817 * repo.c (repo_emit_p): It's OK for a clone to be extern at this
1820 2015-01-27 Caroline Tice <cmtice@google.com>
1822 Committing VTV Cywin/Ming patch for Patrick Wollgast
1823 * vtable-class-hierarchy.cc (vtv_generate_init_routine): Add
1824 check for not TARGET_PECOFF at the VTV_PREINIT_PRIORITY checks.
1826 2015-01-27 Jason Merrill <jason@redhat.com>
1829 * lambda.c (maybe_add_lambda_conv_op): Check cfun rather than
1830 current_function_decl.
1833 * pt.c (finish_template_variable): Move from semantics.c.
1834 Handle multiple template arg levels. Handle coercion here.
1835 (lookup_template_variable): Not here.
1837 2015-01-23 Jason Merrill <jason@redhat.com>
1841 * typeck2.c (split_nonconstant_init_1): Remove a sub-CONSTRUCTOR
1842 that has been completely split out.
1845 * constexpr.c (cxx_eval_constant_expression): Don't crash on C++
1849 * constexpr.c (cxx_eval_constant_expression): Allow for lvalue use
1852 2015-01-21 Jason Merrill <jason@redhat.com>
1855 * constexpr.c (cxx_eval_constant_expression): Only shortcut
1856 constant CONSTRUCTORs.
1859 * constexpr.c (ensure_literal_type_for_constexpr_object): Don't
1860 give a hard error in a template instantiation.
1862 2015-01-21 Richard Biener <rguenther@suse.de>
1865 * decl.c (duplicate_decls): Call set_builtin_decl_declared_p
1866 for builtins the user declared correctly.
1868 2015-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1871 * pt.c (unify): When BRACE_ENCLOSED_INITIALIZER_P (arg), handle
1872 TREE_TYPE (elt) == error_mark_node.
1874 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1876 PR tree-optimization/62053
1877 * tree.c (build_cplus_array_type): Layout type after variants are set.
1879 2015-01-15 Jakub Jelinek <jakub@redhat.com>
1881 * cp-gimplify.c (cp_genericize_r): Call
1882 cp_ubsan_maybe_instrument_member_call for member calls.
1883 (cp_ubsan_check_member_access_r): New function.
1884 (cp_genericize_tree): Call cp_ubsan_instrument_member_accesses.
1885 * cp-tree.h (cp_ubsan_maybe_instrument_member_call,
1886 cp_ubsan_instrument_member_accesses,
1887 cp_ubsan_maybe_instrument_downcast,
1888 cp_ubsan_maybe_instrument_cast_to_vbase): New prototypes.
1889 * cp-ubsan.c: New file.
1890 * Make-lang.in (CXX_AND_OBJCXX_OBJS): Add cp/cp-ubsan.o.
1891 * constexpr.c (cxx_eval_call_expression): Return void_node
1893 (potential_constant_expression_1): Return true for
1894 UBSAN_NULL, UBSAN_BOUNDS and UBSAN_VPTR internal calls.
1895 * typeck.c (build_class_member_access_expr): Provide locus
1897 (build_static_cast_1): Instrument downcasts.
1898 * class.c (build_base_path): For -fsanitize=vptr and !fixed_type_p
1899 add ubsan instrumentation for virtual_access.
1900 * call.c: Include internal-fn.h.
1901 (set_flags_from_callee): Handle internal calls.
1903 2015-01-15 Momchil Velikov <momchil.velikov@gmail.com>
1906 * name-lookup.c (pushdecl_maybe_friend_1): Hide friend functions
1907 and function templates, declared only in the class.
1908 * decl.c (duplicate_decls): Reveal hidden friend functions or
1909 function templates, if they are redeclared outside the class.
1911 2015-01-15 Jason Merrill <jason@redhat.com>
1914 * constexpr.c (cxx_eval_binary_expression): Fix pasto.
1917 * constexpr.c (potential_constant_expression_1): Handle reference
1920 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1921 James Norris <jnorris@codesourcery.com>
1922 Cesar Philippidis <cesar@codesourcery.com>
1923 Ilmir Usmanov <i.usmanov@samsung.com>
1924 Jakub Jelinek <jakub@redhat.com>
1926 * parser.c: Include "gomp-constants.h".
1927 (cp_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
1928 omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
1929 Use OMP_CLAUSE_SET_MAP_KIND.
1930 (cp_parser_omp_construct, cp_parser_pragma): Handle
1931 PRAGMA_OACC_CACHE, PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA,
1932 PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_PARALLEL,
1933 PRAGMA_OACC_LOOP, PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1934 (cp_parser_omp_clause_name): Handle "async", "copy", "copyout",
1935 "create", "delete", "deviceptr", "host", "num_gangs",
1936 "num_workers", "present", "present_or_copy", "pcopy",
1937 "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
1938 "present_or_create", "pcreate", "vector_length", "wait".
1939 (OACC_DATA_CLAUSE_MASK, OACC_ENTER_DATA_CLAUSE_MASK)
1940 (OACC_EXIT_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
1941 (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
1942 (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
1943 (cp_parser_omp_var_list_no_open): Handle OMP_CLAUSE__CACHE_.
1944 (cp_parser_oacc_data_clause, cp_parser_oacc_data_clause_deviceptr)
1945 (cp_parser_oacc_clause_vector_length, cp_parser_oacc_wait_list)
1946 (cp_parser_oacc_clause_wait, cp_parser_omp_clause_num_gangs)
1947 (cp_parser_omp_clause_num_workers, cp_parser_oacc_clause_async)
1948 (cp_parser_oacc_all_clauses, cp_parser_oacc_cache)
1949 (cp_parser_oacc_data, cp_parser_oacc_enter_exit_data)
1950 (cp_parser_oacc_kernels, cp_parser_oacc_loop)
1951 (cp_parser_oacc_parallel, cp_parser_oacc_update)
1952 (cp_parser_oacc_wait): New functions.
1953 * cp-tree.h (finish_oacc_data, finish_oacc_kernels)
1954 (finish_oacc_parallel): New prototypes.
1955 * semantics.c: Include "gomp-constants.h".
1956 (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use
1957 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
1958 OMP_CLAUSE_SET_MAP_KIND.
1959 (finish_omp_clauses): Handle OMP_CLAUSE_ASYNC,
1960 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_WAIT, OMP_CLAUSE__CACHE_.
1961 Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
1962 (finish_oacc_data, finish_oacc_kernels, finish_oacc_parallel): New
1965 2015-01-14 Paolo Carlini <paolo.carlini@oracle.com>
1968 * decl2.c (var_defined_without_dynamic_init): Handle gracefully
1969 self-initialization.
1971 2015-01-13 Jason Merrill <jason@redhat.com>
1975 * constexpr.c (cxx_eval_binary_expression): Don't VERIFY_CONSTANT
1976 pointer expressions.
1977 (cxx_eval_increment_expression): Likewise.
1980 * pt.c (coerce_template_parameter_pack): Return NULL for a
1981 zero-length fixed parameter pack with a pack expansion arg.
1984 * pt.c (unify): Don't try to deduce to std::initializer_list<T...>.
1986 2015-01-12 Jason Merrill <jason@redhat.com>
1989 * constexpr.c (cxx_eval_call_expression): A call to a void
1990 function doesn't need to return a value.
1992 2015-01-09 Michael Collison <michael.collison@linaro.org>
1994 * call.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
1995 input.h, alias.h, symtab.h, options.h, fold-const.h,
1996 wide-int.h, and inchash.h due to flattening of tree.h.
1998 * constexpr.c: Ditto.
1999 * cp-array-notation.c: Ditto.
2000 * cp-gimplify.c: Ditto.
2002 * cp-objcp-common.c: Ditto.
2015 * name-lookup.c: Ditto.
2016 * optimize.c: Ditto.
2023 * semantics.c: Ditto.
2028 2015-01-08 Jason Merrill <jason@redhat.com>
2030 * cp-gimplify.c (cp_genericize): Use do_ubsan_in_current_function.
2031 * decl.c (compute_array_index_type): Likewise.
2032 * init.c (build_vec_init): Likewise.
2033 * typeck.c (cp_build_binary_op): Likewise.
2035 2015-01-08 Jason Merrill <jason@redhat.com>
2037 * init.c (build_vec_init): Call ubsan_instrument_bounds to check
2038 whether an initializer-list is too big for a VLA.
2039 (throw_bad_array_length): Remove.
2040 * cp-tree.h: Remove prototype.
2042 2015-01-08 Paolo Carlini <paolo.carlini@oracle.com>
2045 * decl.c (grokfndecl): Add bool parameter.
2046 (grokdeclarator): Adjust calls.
2047 (start_decl): Don't set DECL_DELETED_FN here.
2049 2015-01-06 Jason Merrill <jason@redhat.com>
2051 * parser.c (cp_parser_nested_name_specifier_opt): Diagnose invalid
2055 * pt.c (type_dependent_expression_p): Handle variable templates.
2056 * constexpr.c (potential_constant_expression_1): Use it.
2059 * semantics.c (finish_offsetof): Handle templates here.
2060 * parser.c (cp_parser_builtin_offsetof): Not here.
2063 * semantics.c (process_outer_var_ref): Diagnose lambda in local
2066 2015-01-06 Ville Voutilainen <ville.voutilainen@gmail.com>
2069 * class.c (check_field_decls): Make copy assignment operators
2070 complex only in c++98 mode.
2072 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2075 * class.c (check_for_override): Warn when a virtual function is an
2076 override not marked override.
2078 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2080 * class.c (warn_hidden): Use auto_vec<tree> instead of tree_list to
2082 (get_basefndecls): Adjust.
2084 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2086 Update copyright years.
2088 2015-01-05 Marek Polacek <polacek@redhat.com>
2091 * typeck.c (cp_build_array_ref): Pass loc down to
2092 warn_array_subscript_with_type_char.
2095 Copyright (C) 2015 Free Software Foundation, Inc.
2097 Copying and distribution of this file, with or without modification,
2098 are permitted in any medium without royalty provided the copyright
2099 notice and this notice are preserved.