1 2014-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3 * parser.c (cp_parser_unary_expression): Add default arguments.
4 (cp_parser_cast_expression, cp_parser_sizeof_operand,
5 cp_parser_omp_atomic): Adjust.
7 2014-10-20 Jason Merrill <jason@redhat.com>
10 * lambda.c (current_nonlambda_function): New.
11 * semantics.c (finish_this_expr): Use it.
12 * cp-tree.h: Declare it.
14 2014-10-17 Alan Modra <amodra@gmail.com>
17 * decl.c (merge_decls): Don't merge section name, comdat group or
18 tls model to newdecl symtab node, instead merge to olddecl.
19 Override existing olddecl section name. Set tls_model for all
20 thread-local vars, not just OMP thread-private ones. Remove
23 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
25 * cp-tree.h: Adjust include files.
27 2014-10-15 Jason Merrill <jason@redhat.com>
30 * pt.c (lookup_template_variable): Call coerce_template_parms.
32 2014-10-15 Paolo Carlini <paolo.carlini@oracle.com>
34 * semantics.c (is_instantiation_of_constexpr, literal_type_p,
35 ensure_literal_type_for_constexpr_object,
36 constexpr_fundef_hasher::equal, constexpr_fundef_hasher::hash,
37 retrieve_constexpr_fundef, is_valid_constexpr_fn,
38 build_anon_member_initialization, build_data_member_initialization,
39 check_constexpr_bind_expr_vars, check_constexpr_ctor_body_1,
40 check_constexpr_ctor_body, sort_constexpr_mem_initializers,
41 build_constexpr_constructor_member_initializers, constexpr_fn_retval,
42 massage_constexpr_body, cx_check_missing_mem_inits,
43 register_constexpr_fundef, explain_invalid_constexpr_fn,
44 constexpr_call_hasher::hash, constexpr_call_hasher::equal,
45 maybe_initialize_constexpr_call_table, get_function_named_in_call,
46 get_nth_callarg, lookup_parameter_binding,
47 cxx_eval_builtin_function_call, adjust_temp_type,
48 cxx_bind_parameters_in_call, push_cx_call_context,
49 pop_cx_call_context, cx_error_context, cxx_eval_call_expression,
50 reduced_constant_expression_p, verify_constant,
51 cxx_eval_unary_expression, cxx_eval_binary_expression,
52 cxx_eval_conditional_expression, cxx_eval_array_reference,
53 cxx_eval_component_reference, cxx_eval_bit_field_ref,
54 cxx_eval_logical_expression, base_field_constructor_elt,
55 cxx_eval_bare_aggregate, cxx_eval_vec_init_1, cxx_eval_vec_init,
56 cxx_fold_indirect_ref, cxx_eval_indirect_ref, non_const_var_error,
57 cxx_eval_trinary_expression, var_in_constexpr_fn,
58 cxx_eval_constant_expression, cxx_eval_outermost_constant_expr,
59 is_sub_constant_expr, cxx_constant_value, maybe_constant_value,
60 maybe_constant_init, potential_constant_expression_1,
61 potential_constant_expression, potential_rvalue_constant_expression,
62 require_potential_constant_expression,
63 require_potential_rvalue_constant_expression): Moved definitions...
64 * constexpr.c: ... here, new file.
65 * Make-lang.in: Update.
66 * config-lang.in: Likewise.
68 2014-10-14 Jason Merrill <jason@redhat.com>
71 * parser.c (struct saved_token_sentinel): New.
72 (cp_parser_statement): Use it.
73 (cp_parser_start_tentative_firewall): New.
74 (cp_parser_end_tentative_firewall): New.
75 (cp_parser_lambda_expression): Use them.
76 (cp_parser_statement_expr): New.
77 (cp_parser_primary_expression): Use it.
79 2014-10-14 DJ Delorie <dj@redhat.com>
81 * typeck.c (cp_common_type): Check for all __intN types, not just
83 * decl.c (grokdeclarator): Likewise.
84 * rtti.c (emit_support_tinfos): Check for all __intN types, not just
86 * parser.c (cp_lexer_next_token_is_decl_specifier_keyword): Check
87 for all __intN types, not just __int128.
88 (cp_parser_simple_type_specifier): Likewise.
89 * mangle.c (integer_type_codes): Remove int128-specific codes.
90 * cp-tree.h (cp_decl_specifier_seq): Add int_n_idx to store which
92 * lex.c (init_reswords): Reserve all __intN keywords.
94 2014-10-14 Marc Glisse <marc.glisse@inria.fr>
96 * typeck.c (cp_build_unary_op) [TRUTH_NOT_EXPR]: Accept float vectors.
98 2014-10-13 H.J. Lu <hongjiu.lu@intel.com>
100 * mangle.c (mangle_conv_op_name_for_type): Cast elements to
102 (print_template_statistics): Cast size and elements to long.
104 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
106 * cp-gimplify.c, cp-tree.h, decl.c, mangle.c, name-lookup.c,
107 pt.c, semantics.c, tree.c, typeck2.c: Use hash_table instead of
110 2014-10-10 Jason Merrill <jason@redhat.com>
113 * class.c (build_base_path): Preserve rvalueness.
114 * call.c (convert_like_real) [ck_base]: Let convert_to_base handle &/*.
115 * rtti.c (build_dynamic_cast_1): Call convert_to_reference later.
118 * method.c (defaulted_late_check): Call maybe_instantiate_noexcept.
120 * method.c (implicitly_declare_fn): Handle deleted lambda default
121 ctor and copy assop here.
122 * class.c (check_bases_and_members): Not here.
123 (add_implicitly_declared_members): And don't set
124 CLASSTYPE_LAZY_MOVE_ASSIGN.
126 * semantics.c (finish_id_expression): Check for error_mark_node.
128 2014-10-09 Jason Merrill <jason@redhat.com>
131 * semantics.c (outer_var_p): Non-static.
132 (process_outer_var_ref): Split out from finish_id_expression.
133 * pt.c (tsubst_copy_and_build): Call them.
134 * cp-tree.h: Declare them.
136 2014-10-09 Paolo Carlini <paolo.carlini@oracle.com>
138 * semantics.c (check_constexpr_ctor_body_1): New.
139 (check_constexpr_ctor_body): Use it; add bool parameter.
140 (build_data_member_initialization): Handle BIND_EXPR and
141 USING_STMT in the main conditional.
142 (build_constexpr_constructor_member_initializers): Do not
143 handle BIND_EXPR here.
144 (constexpr_fn_retval): Handle BIND_EXPR in the switch.
145 (massage_constexpr_body): Don't do it here.
146 * parser.c (cp_parser_ctor_initializer_opt_and_function_body):
147 Adjust check_constexpr_ctor_body call.
148 (cp_parser_compound_statement): Do not pedwarn for compound-statement
149 in constexpr function in C++14 mode.
150 * cp-tree.h (check_constexpr_ctor_body): Update declaration.
152 2014-10-09 Jason Merrill <jason@redhat.com>
155 * parser.c (cp_parser_class_head): push_template_decl for members
159 * pt.c (value_dependent_expression_p) [CONSTRUCTOR]: Check the type.
160 (iterative_hash_template_arg): Likewise.
163 * cp-tree.h (REF_PARENTHESIZED_P): Also allow INDIRECT_REF.
164 * semantics.c (force_paren_expr): And set it.
165 * typeck.c (check_return_expr): And handle it.
167 2014-10-09 Marc Glisse <marc.glisse@inria.fr>
169 * decl.c (grokdeclarator): constexpr only implies const in C++11.
171 2014-10-08 Jason Merrill <jason@redhat.com>
174 * pt.c (tsubst_pack_expansion): Limit simple expansion to type packs.
177 * tree.c (build_cplus_array_type): Look for a type with no
178 typedef-name or attributes.
180 * call.c (call_copy_ctor): New.
181 (build_over_call): Use it to avoid infinite recursion on invalid code.
183 2014-10-07 Jason Merrill <jason@redhat.com>
185 * tree.c (cp_tree_equal) [TRAIT_EXPR]: Use cp_tree_equal for type2.
187 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
189 * cp/parser.c: Allow [[deprecated]] for C++11. Issue a pedwarn.
191 2014-10-06 Paolo Carlini <paolo.carlini@oracle.com>
194 * semantics.c (check_constexpr_bind_expr_vars): New.
195 (check_constexpr_ctor_body, massage_constexpr_body): Use it.
196 (build_constexpr_constructor_member_initializers): Handle
197 BIND_EXPR in the main conditional.
199 2014-10-02 Mark Wielaard <mjw@redhat.com>
202 * cp-objcp-common.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
203 (cp_function_decl_deleted_p): New prototype.
204 * cp-objcp-common.c (cp_function_deleted_p): New function.
206 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
211 * typeck.c (cp_build_binary_op): save_expr after convert to save
212 redundant operations.
213 [TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR]: Handle vectors.
214 (cp_build_unary_op) [TRUTH_NOT_EXPR]: Likewise.
216 2014-10-03 Jason Merrill <jason@redhat.com>
218 * decl.c (start_decl): Complain about static/thread_local vars
219 in constexpr function.
220 (check_for_uninitialized_const_var): Also uninitialized vars.
221 * parser.c (cp_parser_jump_statement): And gotos.
222 (cp_parser_asm_operand_list): And asm.
223 (cp_parser_try_block): And try.
224 * semantics.c (ensure_literal_type_for_constexpr_object): And
227 * semantics.c (constexpr_fn_retval): Ignore declarations in C++14.
228 (var_in_constexpr_fn): New.
229 (cxx_eval_constant_expression): Look into DECL_INITIAL.
230 (potential_constant_expression_1): Allow constexpr-local vars.
233 * tree.c (strip_typedefs): Handle TREE_LIST.
235 2014-10-03 Paolo Carlini <paolo.carlini@oracle.com>
237 * parser.c (cp_parser_assignment_expression,
238 cp_parser_constant_expression): Add default arguments.
239 (cp_parser_primary_expression,
240 cp_parser_postfix_open_square_expression,
241 cp_parser_parenthesized_expression_list,
242 cp_parser_question_colon_clause,
243 cp_parser_expression, cp_parser_constant_expression,
244 cp_parser_label_for_labeled_statement, cp_parser_static_assert,
245 cp_parser_template_argument, cp_parser_enumerator_definition,
246 cp_parser_member_declaration, cp_parser_constant_initializer,
247 cp_parser_noexcept_specification_opt, cp_parser_throw_expression,
248 cp_parser_std_attribute_spec, cp_parser_objc_message_args,
249 cp_parser_objc_class_ivars, cp_parser_omp_clause_collapse,
250 cp_parser_omp_clause_aligned, cp_parser_omp_clause_safelen,
251 cp_parser_omp_clause_simdlen, cp_parser_omp_clause_dist_schedule,
252 cp_parser_omp_for_incr, cp_parser_omp_for_loop_init,
253 cp_parser_cilk_simd_vectorlength, cp_parser_cilk_simd_linear): Adjust.
255 2014-10-02 Paolo Carlini <paolo.carlini@oracle.com>
258 * cp-tree.h (struct saved_scope): Add noexcept_operand.
259 (cp_noexcept_operand): Define.
260 * call.c (build_over_call): Use it.
261 * parser.c (cp_parser_unary_expression, [RID_NOEXCEPT]): Likewise.
262 * pt.c (tsubst_copy_and_build, [NOEXCEPT_EXPR]): Likewise.
264 2014-10-01 Jason Merrill <jason@redhat.com>
267 * method.c (constructible_expr): Handle value-init of non-class.
268 * parser.c (cp_parser_trait_expr): Allow pack expansion.
269 * pt.c (tsubst_copy_and_build): Handle pack expansion.
272 * class.c (type_has_non_user_provided_default_constructor): Rename
273 from type_has_user_provided_default_constructor, reverse sense.
274 (default_init_uninitialized_part, explain_non_literal_class): Adjust.
275 (check_bases_and_members): Set TYPE_HAS_COMPLEX_DFLT.
276 * call.c (build_new_method_call_1): Adjust.
278 * decl.c (grok_special_member_properties): Don't set
279 TYPE_HAS_COMPLEX_DFLT.
280 * init.c (build_value_init_noctor): Don't use
281 type_has_user_provided_default_constructor.
283 2014-09-30 Jason Merrill <jason@redhat.com>
285 * cp-tree.h (cp_trait_kind): Add CPTK_IS_TRIVIALLY_ASSIGNABLE and
286 CPTK_IS_TRIVIALLY_CONSTRUCTIBLE.
287 * cxx-pretty-print.c (pp_cxx_trait_expression): Likewise.
288 * parser.c (cp_parser_primary_expression): Likewise.
289 (cp_parser_trait_expr): Likewise. Handle variadic trait.
290 * semantics.c (trait_expr_value): Likewise.
291 (finish_trait_expr): Likewise.
292 (check_trait_type): Handle variadic trait. Return bool.
293 * method.c (build_stub_object): Add rvalue reference here.
294 (locate_fn_flags): Not here.
295 (check_nontriv, assignable_expr, constructible_expr): New.
296 (is_trivially_xible): New.
298 * cp-tree.h (cp_trait_kind): Add CPTK_IS_TRIVIALLY_COPYABLE.
299 * cxx-pretty-print.c (pp_cxx_trait_expression): Likewise.
300 * parser.c (cp_parser_primary_expression): Likewise.
301 (cp_parser_trait_expr): Likewise.
302 * semantics.c (trait_expr_value): Likewise.
303 (finish_trait_expr): Likewise.
305 * method.c (build_stub_object): Use CONVERT_EXPR.
306 * tree.c (build_dummy_object): Likewise.
307 (is_dummy_object): Adjust.
309 * cp-tree.h (cp_trait_kind): Remove CPTK_IS_CONVERTIBLE_TO.
310 * cxx-pretty-print.c (pp_cxx_trait_expression): Likewise.
311 * semantics.c (trait_expr_value): Likewise.
312 (finish_trait_expr): Likewise.
313 * parser.c (cp_parser_primary_expression): Likewise.
314 (cp_parser_trait_expr): Likewise. Remove redundant grokdeclarator.
316 2014-09-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
319 * error.c (print_instantiation_context): Delete.
320 * typeck2.c (build_x_arrow): Record location when pushing
321 template instantiation.
322 * pt.c (push_tinst_level): Make it a wrapper around ...
323 (push_tinst_level_loc): ... this. New function. Make excessive
324 template instantiation depth a fatal error. Record location. Use
326 (instantiate_pending_templates): Make excessive
327 template instantiation depth a fatal error.
328 (problematic_instantiation_changed): Use bool as return type.
329 * cp-tree.h (print_instantiation_context): Delete.
330 (push_tinst_level): Update declaration.
331 (problematic_instantiation_changed): Likewise.
332 (push_tinst_level_loc): New.
334 2014-09-29 Richard Biener <rguenther@suse.de>
336 * typeck.c (enum_cast_to_int): Use CONVERT_EXPR_P to check
339 2014-09-26 Jason Merrill <jason@redhat.com>
341 * mangle.c (find_substitution): Use write_abi_tags.
343 2014-09-25 Marek Polacek <polacek@redhat.com>
346 * class.c (warn_hidden): Check for FUNCTION_DECL.
348 2014-09-25 Jakub Jelinek <jakub@redhat.com>
351 * semantics.c (handle_omp_array_sections_1): Call mark_rvalue_use
352 on low_bound and length.
354 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
356 * class.c, decl.c, optimize.c: Rename all instances of
357 DECL_ABSTRACT to DECL_ABSTRACT_P.
359 2014-09-24 Marek Polacek <polacek@redhat.com>
363 * semantics.c (finish_switch_cond): Call unlowered_expr_type.
364 * tree.c (bot_manip): Add default case.
365 * parser.c (cp_parser_primary_expression): Cast the controlling
366 expression of a switch to an int.
367 (cp_parser_unqualified_id): Likewise.
369 2014-09-23 Paolo Carlini <paolo.carlini@oracle.com>
372 * parser.c (cp_parser_skip_to_closing_square_bracket,
373 cp_parser_array_designator_p): New.
374 (cp_parser_initializer_list): Use the latter.
376 2014-09-22 Jason Merrill <jason@redhat.com>
378 * semantics.c (finish_non_static_data_member): In diagnostic, give
379 error at point of use and note at point of declaration.
384 * lambda.c (maybe_resolve_dummy, lambda_expr_this_capture): Handle
387 2014-09-22 Paolo Carlini <paolo.carlini@oracle.com>
390 * pt.c (check_default_tmpl_args): Check LAMBDA_FUNCTION_P.
392 2014-09-22 Jason Merrill <jason@redhat.com>
394 * decl.c (poplevel): Don't warn about unused vars in template scope.
395 * error.c (dump_decl): Handle variable templates.
397 2014-09-20 Jason Merrill <jason@redhat.com>
400 * decl.c (begin_destructor_body): Only clobber the as-base part of
403 2014-09-19 Jason Merrill <jason@redhat.com>
406 * mangle.c (write_expression): Use unresolved-name mangling for
410 * call.c (convert_like_real) [ck_identity]: Call mark_rvalue_use
411 after pulling out an element from a CONSTRUCTOR.
413 2014-09-18 Jakub Jelinek <jakub@redhat.com>
416 * semantics.c (finish_omp_clauses): Don't call cp_omp_mappable_type
417 on type of type dependent expressions, and don't call it if
418 handle_omp_array_sections has kept TREE_LIST because something
420 * pt.c (tsubst_expr) <case OMP_TARGET, case OMP_TARGET_DATA>:
421 Use keep_next_level, begin_omp_structured_block and
422 finish_omp_structured_block instead of push_stmt_list and
425 2014-09-18 Paolo Carlini <paolo.carlini@oracle.com>
428 * class.c (finish_struct_1): Do not -Wnon-virtual-dtor warn
429 for final class types.
431 2014-09-15 Jason Merrill <jason@redhat.com>
433 * pt.c (lookup_template_class_1): Splice out abi_tag attribute if
434 necessary. Call inherit_targ_abi_tags here.
435 * class.c (check_bases_and_members): Not here.
436 (inherit_targ_abi_tags): Check CLASS_TYPE_P.
437 * cp-tree.h: Declare inherit_targ_abi_tags.
439 2014-09-15 Ville Voutilainen <ville.voutilainen@gmail.com>
441 Do not diagnose lambda default arguments in c++14 modes.
442 * parser.c (cp_parser_lambda_declarator_opt): Make the pedwarn
445 2014-09-15 Jakub Jelinek <jakub@redhat.com>
447 * Make-lang.in (check_g++_parallelize): Change to just an upper bound
450 2014-09-13 Marek Polacek <polacek@redhat.com>
453 * parser.c (cp_parser_postfix_expression) <case CPP_OPEN_PAREN>: Set
454 location of a call expression.
456 2014-09-11 Jason Merrill <jason@redhat.com>
459 * decl.c (start_decl): Handle specialization of member variable
461 * pt.c (check_explicit_specialization): Adjust error.
463 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
466 * typeck2.c (process_init_constructor_record): Do not warn about
467 missing field initializer if EMPTY_CONSTRUCTOR_P (init).
469 2014-09-11 Jason Merrill <jason@redhat.com>
472 * pt.c (tsubst_pack_expansion): Simplify substitution into T....
473 (tsubst): Don't throw away PACK_EXPANSION_EXTRA_ARGS.
475 2014-09-10 Jason Merrill <jason@redhat.com>
478 * decl.c (grokfndecl): Don't set DECL_COMDAT on static inlines.
479 (duplicate_decls, start_decl): Likewise.
480 * pt.c (check_explicit_specialization): Likewise.
481 (push_template_decl_real): Or static templates.
483 2014-09-08 Jason Merrill <jason@redhat.com>
485 * typeck.c (build_class_member_access_expr): Move
486 -Winvalid-offsetof code...
487 * semantics.c (finish_offsetof): ...here.
488 * parser.c (cp_parser_builtin_offsetof): Remember the location of
490 * pt.c (tsubst_copy_and_build) [OFFSETOF_EXPR]: Preserve it.
493 * pt.c (instantiate_decl): Handle recursive instantiation of
496 2014-09-05 Jason Merrill <jason@redhat.com>
499 * semantics.c (potential_constant_expression_1): Handle un-folded
500 pointer to member constants.
502 2014-09-04 Markus Trippelsdorf <markus@trippelsdorf.de>
505 * decl.c (duplicate_decls): Check DECL_DECLARED_INLINE_P on
506 newdecl, not olddecl.
508 2014-09-02 Paolo Carlini <paolo.carlini@oracle.com>
511 * class.c (check_field_decls): A class of literal type cannot have
512 volatile non-static data members and base classes.
513 (explain_non_literal_class): Update.
515 2014-09-02 Jakub Jelinek <jakub@redhat.com>
516 Balaji V. Iyer <balaji.v.iyer@intel.com>
517 Igor Zamyatin <igor.zamyatin@intel.com>
519 * cp-cilkplus.c (cpp_validate_cilk_plus_loop_aux): Loc definition
521 * parser.c (cp_parser_cilk_for): New function.
522 (cp_parser_cilk_grainsize): Likewise.
523 (cp_parser_statement): Added RID_CILK_FOR case.
524 (cp_parser_omp_for_cond): Added CILK_FOR check.
525 (cp_parser_omp_for_loop_init): Change function argument to accept
526 tree_code instead just a bool flag; change the check to use that
527 tree_code; check for initialization declaration in case of Cilk_for.
528 (cp_parser_omp_for_loop): Added checks for CILK_FOR and RID_CILK_FOR;
529 changed call to cp_parser_omp_for_loop_init according new arguments'
531 (cp_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
532 * pt.c (tsubst_expr): Added CILK_FOR case.
533 * semantics.c: Include convert.h.
534 (finish_omp_clauses): Properly handle OMP_CLAUSE_SCHEDULE_CILKFOR
535 case; added OMP_CLAUSE__CILK_FOR_COUNT_.
536 (handle_omp_for_class_iterator): New argument lastp and its usage;
538 (finish_omp_for): Changed call to handle_omp_for_class_iterator
539 according new arguments' list; in case of Cilk_for save very first
540 decl and create empty stmt_list block; use block to build correct
543 2014-08-31 Jason Merrill <jason@redhat.com>
546 * optimize.c (cdtor_comdat_group): Just look at the
547 DECL_ASSEMBLER_NAME of the 'tors.
549 2014-08-27 Paolo Carlini <paolo.carlini@oracle.com>
552 * semantics.c (cxx_eval_call_expression): Use STRIP_NOPS on the
553 result of cxx_eval_constant_expression.
555 2014-08-26 Jason Merrill <jason@redhat.com>
558 * pt.c (tsubst_decl) [VAR_DECL]: Copy TLS model.
559 (tsubst_copy_and_build) [VAR_DECL]: Use TLS wrapper.
560 * semantics.c (finish_id_expression): Don't call TLS wrapper in a
563 2014-08-25 Jason Merrill <jason@redhat.com>
565 * pt.c (check_explicit_specialization): Don't complain about
566 non-template variable.
567 (template_for_substitution): Allow variable templates.
568 (check_template_variable): Fix logic for member var template.
569 * decl.c (start_decl): Don't complain about extra template header
572 * decl.c (start_decl): Look through member variable template.
573 * pt.c (tsubst_decl) [VAR_DECL]: Handle member variable templates.
574 * decl2.c (grokfield): Set DECL_CONTEXT earlier on
577 2014-08-25 Paolo Carlini <paolo.carlini@oracle.com>
580 * cp-tree.h (TFF_POINTER): Add.
581 * cxx-pretty-print.h (pp_cxx_cv_qualifiers): Forward the third
583 * error.c (dump_type_suffix): Actually print the const and noreturn
584 attribute when appropriate.
586 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
588 * decl.c (compute_array_index_type, grokdeclarator,
589 undeduced_auto_decl): Change from cxx1y to cxx14.
590 *lambda.c(add_capture()): Change error message from C++1y to C++14.
591 * parser.c (cp_parser_unqualified_id, cp_parser_pseudo_destructor_name,
592 cp_parser_lambda_introducer, cp_parser_lambda_declarator_opt,
593 cp_parser_decltype, cp_parser_conversion_type_id,
594 cp_parser_simple_type_specifier, cp_parser_type_id_1,
595 cp_parser_template_type_arg, cp_parser_std_attribute,
596 cp_parser_template_declaration_after_export): Ditto.
597 * pt.c (tsubst): Ditto.
598 * semantics.c (force_paren_expr, finish_decltype_type): Ditto.
599 * tree.c: Change comment.
600 * typeck.c (comp_template_parms_position, cxx_sizeof_or_alignof_type,
601 cp_build_addr_expr_1, maybe_warn_about_useless_cast): Ditto.
603 2014-08-23 Jason Merrill <jason@redhat.com>
605 Allow non-constexpr variable templates.
606 * decl2.c (note_variable_template_instantiation): New.
607 * cp-tree.h: Declare it.
608 * pt.c (instantiate_decl): Call it.
609 (push_template_decl_real): Allow non-constexpr variable templates.
610 * semantics.c (finish_id_expression): Mark the variable template
611 instantiation as used.
612 * mangle.c (write_mangled_name): Variable template instantiations
614 * parser.c (cp_parser_init_declarator): Complain about
615 non-function implicit templates.
617 2014-08-22 Marek Polacek <polacek@redhat.com>
620 * parser.c (cp_parser_binary_expression): Check each LHS if it's
621 preceded with logical not. Adjust call to
622 warn_logical_not_parentheses.
624 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
627 * name-lookup.c (pushdecl_maybe_friend_1): Do not warn if a
628 declaration shadows a function declaration, unless the former
629 declares a function, pointer to function or pointer to member
630 function, because this is a common and valid case in real-world
632 * cp-tree.h (TYPE_PTRFN_P,TYPE_REFFN_P,TYPE_PTRMEMFUNC_P):
635 2014-08-22 Jason Merrill <jason@redhat.com>
638 * class.c (outermost_open_class): Fix logic.
639 * decl.c (complete_vars): Fix logic.
641 2014-08-22 Jason Merrill <jason@redhat.com>
644 * class.c (outermost_open_class): New.
645 * cp-tree.h: Declare it.
646 * decl.c (maybe_register_incomplete_var): Use it.
647 (complete_vars): Handle any constant variable.
648 * expr.c (cplus_expand_constant): Handle CONSTRUCTOR.
650 2014-08-22 Igor Zamyatin <igor.zamyatin@intel.com>
653 * cp-array-notation.c (build_array_notation_ref): Added correct
654 handling of case with incorrect array.
656 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
659 * error.c (cp_diagnostic_finalizer): Delete.
660 (init_error): Do not set diagnostic_finalizer here.
662 2014-08-19 Marek Polacek <polacek@redhat.com>
665 * call.c (build_new_op_1): Remember the type of arguments for
666 a comparison. If either operand of a comparison is a boolean
667 expression, call maybe_warn_bool_compare.
669 2014-08-19 Jason Merrill <jason@redhat.com>
671 PR tree-optimization/62091
672 * decl2.c (decl_needed_p): Return true for virtual functions when
677 * decl.c (maybe_commonize_var): Don't use DECL_COMDAT to trigger
680 2014-08-19 Gerald Pfeifer <gerald@pfeifer.com>
682 * class.c (contains_empty_class_p): Remove.
684 2014-08-18 Paolo Carlini <paolo.carlini@oracle.com>
686 * parser.c (cp_parser_expression): Add default arguments.
687 (cp_parser_primary_expression, cp_parser_postfix_expression,
688 cp_parser_array_notation, cp_parser_postfix_open_square_expression,
689 cp_parser_unary_expression, cp_parser_direct_new_declarator,
690 cp_parser_question_colon_clause, cp_parser_assignment_operator_opt,
691 cp_parser_lambda_body, cp_parser_expression_statement,
692 cp_parser_condition, cp_parser_c_for, cp_parser_range_for,
693 cp_parser_iteration_statement, cp_parser_jump_statement,
694 cp_parser_decltype_expr, cp_parser_noexcept_specification_opt,
695 cp_parser_asm_operand_list, cp_parser_objc_message_receiver,
696 cp_parser_objc_synchronized_statement, cp_parser_objc_throw_statement,
697 cp_parser_omp_var_list_no_open, cp_parser_omp_clause_num_threads,
698 cp_parser_omp_clause_num_teams, cp_parser_omp_clause_thread_limit,
699 cp_parser_omp_clause_linear, cp_parser_omp_clause_device,
700 cp_parser_omp_atomic, cp_parser_omp_for_loop_init,
701 cp_parser_omp_for_loop, cp_parser_omp_declare_reduction_exprs,
702 cp_parser_transaction_expression): Adjust.
704 2014-08-15 Jason Merrill <jason@redhat.com>
707 * pt.c (lookup_template_class_1): Revert recent change.
708 * mangle.c (CLASSTYPE_TEMPLATE_ID_P): Revert recent change.
711 * pt.c (instantiate_class_template_1): Ignore lambda on
713 (push_template_decl_real): A lambda is not primary.
714 (lookup_template_class_1): Don't look for a lambda partial
716 * lambda.c (maybe_add_lambda_conv_op): Distinguish between being
717 currently in a function and the lambda living in a function.
718 * mangle.c (CLASSTYPE_TEMPLATE_ID_P): False for lambda.
720 2014-08-15 Richard Biener <rguenther@suse.de>
721 Jason Merrill <jason@redhat.com>
724 * tree.c (build_min_array_type, set_array_type_canon): Split out...
725 (build_cplus_array_type): ...from here. Only call build_array_type
728 2014-08-15 Paolo Carlini <paolo.carlini@oracle.com>
732 2014-07-09 Paolo Carlini <paolo.carlini@oracle.com>
736 * pt.c (check_cv_quals_for_unify): Implement resolution, disregard
737 cv-qualifiers of function types.
739 2014-08-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
741 * call.c (build_conditional_expr_1): Use OPT_Wextra in warning.
743 2014-08-14 Paolo Carlini <paolo.carlini@oracle.com>
745 * typeck.c (composite_pointer_type, cxx_sizeof_or_alignof_type,
746 cp_build_array_ref, cp_build_function_call_vec): When a
747 pedwarn is suppressed under SFINAE, return error_mark_node.
749 * typeck.c (cxx_sizeof_or_alignof_type): Fix complain &
750 tf_warning_or_error, where complain is a bool, glitch.
752 2014-08-14 Ville Voutilainen <ville.voutilainen@gmail.com>
755 * decl.c (grokdeclarator): Move the check for friend initializers..
756 * decl2.c (grokfield) ..here. Postpone early return for friends
757 until after the initializer check.
759 2014-08-14 Paolo Carlini <paolo.carlini@oracle.com>
762 * pt.c (coerce_template_parms): Improve error message vs default
765 2014-08-14 Paolo Carlini <paolo.carlini@oracle.com>
767 * parser.c (cp_parser_init_declarator): Remove redundant check of
768 decl_specifiers->type.
770 2014-08-13 Jason Merrill <jason@redhat.com>
772 * call.c (build_x_va_arg): Support passing non-POD through ....
773 (convert_arg_to_ellipsis): Likewise.
775 2014-08-13 Andrew Sutton <andrew.n.sutton@gmail.com>
777 * pt.c (lookup_template_variable): Make dependent variable templates
780 2014-08-13 Paolo Carlini <paolo.carlini@oracle.com>
782 * parser.c (cp_parser_elaborated_type_specifier): Handle
783 specially cp_parser_template_id returning a BASELINK.
785 2014-08-13 Paolo Carlini <paolo.carlini@oracle.com>
787 * parser.c (cp_parser_diagnose_invalid_type_name,
788 cp_parser_make_typename_type): Remove scope parameter.
789 (cp_parser_parse_and_diagnose_invalid_type_name,
790 cp_parser_elaborated_type_specifier): Adjust calls.
792 2014-08-12 Ville Voutilainen <ville.voutilainen@gmail.com>
794 Reject virt-specifiers on friends and member templates
795 * friend.c (do_friend): Diagnose virt-specifiers.
796 * pt.c (push_template_decl_real): Diagnose virt-specifiers.
798 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
800 * typeck2.c (check_narrowing): Add tsubst_flags_t parameter, change
801 return type to bool; in C++11 for constants give errors, not pedwarns.
802 * cp-tree.h (check_narrowing): Adjust declaration.
803 * call.c (convert_like_real): Update calls.
804 * semantics.c (finish_compound_literal): Likewise.
806 2014-08-08 Jason Merrill <jason@redhat.com>
808 * pt.c (lookup_template_class_1): Copy abi_tag.
810 2014-08-08 Kai Tietz <ktietz@redhat.com>
812 * semantics.c (expand_or_defer_fn_1): Check for keep-inline-dllexport
813 that we operate on a true inline.
815 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
817 * class.c, cp-gimplify.c, decl.c, decl2.c, error.c, method.c,
818 optimize.c, pt.c, semantics.c: Remove includes of pointer-set.h.
820 2014-08-07 Paolo Carlini <paolo.carlini@oracle.com>
823 * decl.c (build_enumerator): Handle class types with conversion
824 operators via perform_implicit_conversion_flags and
825 build_expr_type_conversion.
827 * cvt.c (build_expr_type_conversion): Replace pair of errors
830 2014-08-07 Jason Merrill <jason@redhat.com>
833 * parser.c (c_parse_file): Change sorry to fatal_error.
836 * semantics.c (cxx_eval_bare_aggregate): Handle POINTER_PLUS_EXPR.
838 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
840 * cp-tree.h, pt.c: Use hash_map instead of pointer_map.
842 2014-08-06 Jason Merrill <jason@redhat.com>
844 * init.c (build_vec_init): Fix constant initialization of
846 (build_value_init_noctor): Call maybe_constant_init.
847 * semantics.c (maybe_constant_init): See through EXPR_STMT and
851 * init.c (build_vec_init): Reorganize earlier change a bit.
854 * init.c (build_vec_init): Leave atype an ARRAY_TYPE
855 if we're just returning an INIT_EXPR.
857 2014-08-06 Jason Merrill <jason@redhat.com>
858 Braden Obrzut <admin@maniacsvault.net>
860 * pt.c (check_explicit_specialization): Don't test
861 DECL_DECLARED_INLINE_P for a variable template.
863 2014-08-06 Paolo Carlini <paolo.carlini@oracle.com>
866 * typeck.c (cp_build_binary_op): Extend to more cases the
869 2014-08-01 Braden Obrzut <admin@maniacsvault.net>
871 Implement constexpr variable templates
872 * decl.c (grokvardecl): Handle specializations of variable templates.
873 (grokdeclarator): Handle variable template id expressions and NULL_TREE
874 return from grokvardecl.
875 * decl2.c (check_member_template): Allow declaration of template member
877 * parser.c (cp_parser_template_id): Build a TEMPLATE_ID_EXPR for
879 * pt.c (check_template_variable): Accept variable temploids at
881 (push_template_decl_real): The current instantiation of a template
883 (determine_specialization): Accept variable templates.
884 (check_explicit_specialization): Handle and check for malformed
885 variable template specializations.
886 (lookup_template_variable): New.
887 (tsubst_decl): Handle variable template specializations.
888 (do_decl_instantiation): Handle template variables.
889 (instantiate_decl): Handle template variables.
890 * semantics.c (finish_template_variable): New.
891 (finish_id_expression): Instantiate variable templates.
892 * cp-tree.h (variable_template_p): New.
894 2014-08-02 Paolo Carlini <paolo.carlini@oracle.com>
897 * decl.c (check_redeclaration_no_default_args): New.
898 (duplicate_decls): Use it, handle default arguments
899 in redeclarations of function templates.
901 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
903 * optimize.c, semantics.c: Use hash_map instead of pointer_map.
905 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
907 * class.c, cp-gimplify.c, cp-tree.h, decl.c, decl2.c, error.c,
908 method.c, name-lookup.c, pt.c, semantics.c, tree.c: Use hash_set
909 instead of pointer_set.
911 2014-08-01 Jason Merrill <jason@redhat.com>
914 * init.c (build_vec_init): Set CONSTRUCTOR_IS_DIRECT_INIT on
915 init-list for trailing elements.
916 * typeck2.c (process_init_constructor_array): Likewise.
918 2014-08-01 Paolo Carlini <paolo.carlini@oracle.com>
921 * decl.c (duplicate_decls): Handle static member functions too.
923 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
925 * cp-array-notation.c (expand_an_in_modify_expr): Fix the misprint
928 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
931 * parser.c (cp_parser_array_notation): Added check for array_type.
933 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
936 * cp-array-notation.c (expand_array_notation_exprs): Handling of
937 DECL_EXPR improved. Changed handling for INIT_EXPR.
939 2014-08-01 Paolo Carlini <paolo.carlini@oracle.com>
941 * pt.c (lookup_template_class_1): Use DECL_TYPE_TEMPLATE_P.
943 2014-08-01 Jakub Jelinek <jakub@redhat.com>
945 * cp-gimplify.c (cp_genericize_r): For -fsanitize=null and/or
946 -fsanitize=alignment call ubsan_maybe_instrument_reference
947 for casts to REFERENCE_TYPE and ubsan_maybe_instrument_member_call
948 for calls to member functions.
950 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
953 * typeck.c (maybe_warn_about_returning_address_of_local): Return
954 whether it is returning the address of a local variable.
955 (check_return_expr): Return 0 instead of the address of a local
958 2014-07-30 Jason Merrill <jason@redhat.com>
962 * pt.c (push_template_decl_real): Don't set DECL_COMDAT on friends.
964 2014-07-30 Paolo Carlini <paolo.carlini@oracle.com>
967 * pt.c (unify_arity): Add boolean parameter.
968 (unify_too_few_arguments): Likewise.
969 (type_unification_real): Diagnose correctly insufficient
970 arguments in the presence of trailing variadic parameters;
971 deducing multiple trailing packs as empty is fine.
973 2014-07-30 Jason Merrill <jason@redhat.com>
978 * decl2.c (mark_all_virtuals): New variable.
979 (maybe_emit_vtables): Check it instead of flag_devirtualize.
980 (cp_write_global_declarations): Set it and give helpful diagnostic
981 if it introduces errors.
982 * class.c (finish_struct_1): Check it.
986 * pt.c (push_template_decl_real): Set DECL_COMDAT on templates.
987 (check_explicit_specialization): Clear it on specializations.
988 * decl.c (duplicate_decls, start_decl): Likewise.
989 (grokmethod, grokfndecl): Set DECL_COMDAT on inlines.
990 * method.c (implicitly_declare_fn): Set DECL_COMDAT. Determine
991 linkage after setting the appropriate flags.
992 * tree.c (decl_linkage): Don't check DECL_COMDAT.
993 * decl2.c (mark_needed): Mark clones.
994 (import_export_decl): Not here.
996 2014-07-25 Edward Smith-Rowland <3dw4rd@verizon.net>
998 Implement N4051 - Allow typename in a template template parameter
999 * parser.c (cp_parser_type_parameter_key): New funtion;
1000 (cp_parser_token_is_type_parameter_key): Ditto;
1001 (cp_parser_type_parameter): Look for type-parameter-key for all versions
1002 but pedwarn for less than cxx1z.
1004 2014-07-17 Paolo Carlini <paolo.carlini@oracle.com>
1007 * call.c (standard_conversion): Use resolve_nondeduced_context
1008 for type_unknown_p (EXPR) && TREE_CODE (TO) == BOOLEAN_TYPE.
1010 2014-07-17 Paolo Carlini <paolo.carlini@oracle.com>
1013 * parser.c (cp_parser_tokens_start_cast_expression): Return -1
1016 2014-07-15 Jason Merrill <jason@redhat.com>
1019 * decl2.c (maybe_emit_vtables): Return true for -fuse-all-virtuals.
1023 * call.c (is_std_init_list): Don't check CLASSTYPE_TEMPLATE_INFO.
1024 * class.c (finish_struct): Reject invalid definition of
1025 std::initializer_list.
1027 2014-07-15 Paolo Carlini <paolo.carlini@oracle.com>
1029 * call.c (convert_like_real): Call print_z_candidate and inform only
1030 if permerror returns true.
1032 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
1034 * class.c (build_clone): Do not clear assembler names of
1036 * decl.c (cp_tree_node_structure): Add TEMPLATE_DECL.
1037 * cp-objcp-common.c (cp_tree_size): Add TEMPLATE_DECL
1038 as a special case return sizeof (struct tree_decl_non_common)
1040 (cp_common_init_ts): Do not initialize NAMESPACE_DECL;
1041 initialize TEMPLATE_DECL as MARK_TS_DECL_COMMON.
1042 * cp/cp-tree.h (tree_template_decl): New structure.
1043 (cp_tree_node_structure_enum): Add TS_CP_TEMPLATE_DECL.
1044 (union cp_lang_tree_node): Add template_decl.
1045 (DECL_TEMPLATE_PARMS, DECL_TEMPLATE_RESULT): Update.
1047 2014-07-14 Jason Merrill <jason@redhat.com>
1051 * pt.c (instantiate_decl): Don't check defer_ok for local class
1054 2014-07-14 Jakub Jelinek <jakub@redhat.com>
1057 * cp-tree.h (LITERAL_ZERO_P): Define.
1058 * parser.c (cp_parser_parenthesized_expression_list): Add
1059 want_literal_zero_p argument, if true, for literal zeros
1060 insert INTEGER_CSTs with LITERAL_ZERO_P flag set.
1061 (cp_parser_postfix_expression): Adjust
1062 cp_parser_parenthesized_expression_list caller, handle
1063 -Wmemset-transposed-args.
1064 (literal_zeros): New variable.
1066 2014-07-13 Jason Merrill <jason@redhat.com>
1069 * semantics.c (is_instantiation_of_constexpr): Return true for
1070 defaulted functions, too.
1071 (explain_invalid_constexpr_fn): Only use
1072 explain_implicit_non_constexpr if !DECL_DECLARED_CONSTEXPR_P.
1073 * method.c (explain_implicit_non_constexpr): Pass
1074 DECL_INHERITED_CTOR_BASE to explain_implicit_non_constexpr.
1077 * decl.c (check_initializer): Don't finish_compound_literal
1078 on erroneous constexpr init.
1081 * tree.c (bot_replace): Only replace a dummy 'this' parm.
1084 * decl.c (create_array_type_for_decl): Only check for auto once.
1087 * call.c (build_list_conv): Don't try to build a list of references.
1089 2014-07-13 Edward Smith-Rowland <3dw4rd@verizon.net>
1091 PR C++/60209 - Declaration of user-defined literal operator cause error
1092 * parser.c (cp_parser_operator): Fold treatment of strings
1093 and user-defined string literals. Use the full string parser.
1094 (cp_parser_string_literal): Add flag to not look for literal operator.
1096 2014-07-11 Jason Merrill <jason@redhat.com>
1100 * call.c (build_conditional_expr_1): Avoid reading freed memory.
1102 2014-07-11 Paolo Carlini <paolo.carlini@oracle.com>
1105 * call.c (build_user_type_conversion_1): Copy LOOKUP_NO_NARROWING
1107 * decl.c (check_initializer): Don't call check_narrowing here,
1108 set LOOKUP_NO_NARROWING.
1109 * typeck2.c (digest_init_r): Likewise.
1111 2014-07-10 Jason Merrill <jason@redhat.com>
1114 * semantics.c (reduced_constant_expression_p): Handle CONSTRUCTOR.
1118 * decl2.c (mark_all_virtuals): New variable.
1119 (maybe_emit_vtables): Check it instead of flag_devirtualize.
1120 (cp_write_global_declarations): Set it and give helpful diagnostic
1121 if it introduces errors.
1122 * class.c (finish_struct_1): Check it.
1123 * decl.c (grokdeclarator): Clear virtualp after 'virtual auto' error.
1125 2014-07-09 Paolo Carlini <paolo.carlini@oracle.com>
1128 * decl.c (grokdeclarator): Adjust error messages about 'explicit'
1129 outside class declaration, in friend declaration, and neither on
1130 constructor nor conversion operator.
1132 2014-07-09 Paolo Carlini <paolo.carlini@oracle.com>
1136 * pt.c (check_cv_quals_for_unify): Implement resolution, disregard
1137 cv-qualifiers of function types.
1139 2014-07-09 Andrew Sutton <andrew.n.sutton@gmail.com>
1140 Paolo Carlini <paolo.carlini@oracle.com>
1143 * parser.c (cp_parser_tokens_start_cast_expression): Return 0 for
1146 2014-07-07 Paolo Carlini <paolo.carlini@oracle.com>
1148 * class.c (check_for_override): Wrap the 'final' and 'override'
1149 keywords in %< and %>.
1151 2014-07-06 Marek Polacek <polacek@redhat.com>
1154 * cp-tree.h (DECL_ARRAY_PARAMETER_P): Define.
1155 * decl.c (grokdeclarator): Set DECL_ARRAY_PARAMETER_P.
1156 * typeck.c (cxx_sizeof_expr): Warn when using sizeof on an array
1159 2014-07-02 Paolo Carlini <paolo.carlini@oracle.com>
1161 * pt.c (convert_template_argument): Use inform instead of error in
1164 2014-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1169 * parser.c (cp_parser_userdef_string_literal): Take a tree
1171 (cp_parser_string_literal): Don't hack the token stream.
1173 2014-06-30 Jason Merrill <jason@redhat.com>
1177 * decl2.c (maybe_emit_vtables): Mark all vtable entries if
1179 * init.c (build_vtbl_address): Don't mark destructor.
1180 * class.c (finish_struct_1): Add all classes to keyed_classes
1184 * pt.c (type_dependent_expression_p): Check BASELINK_OPTYPE.
1187 * mangle.c (decl_mangling_context): Look through a TEMPLATE_DECL.
1189 * decl.c (build_ptrmemfunc_type): Don't give a PMF RECORD_TYPE
1190 TYPE_BINFO or TYPE_LANG_SPECIFIC.
1191 * cp-tree.h (TYPE_PTRMEMFUNC_FLAG): Use TYPE_LANG_FLAG_2.
1192 (TYPE_PTRMEMFUNC_P): Don't expect TYPE_LANG_SPECIFIC.
1193 * typeck.c (build_ptrmemfunc_access_expr): Don't use lookup_member.
1194 * pt.c (unify): Also check whether the argument is a PMF.
1196 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1199 * parser.c (cp_parser_tokens_start_cast_expression): In C++11
1200 a '[' can also start a primary-expression.
1201 (cp_parser_cast_expression): Parse a cast-expression only tentatively
1202 when cp_parser_tokens_start_cast_expression returns -1.
1204 2014-06-30 Jason Merrill <jason@redhat.com>
1207 * pt.c (unify_one_argument): Type/expression mismatch just causes
1210 * semantics.c (simplify_aggr_init_expr): Remove remnants of
1213 2014-06-30 Marek Polacek <polacek@redhat.com>
1215 * cp-gimplify.c (cp_genericize): Don't instrument returns if the
1216 function has no_sanitize_undefined attribute.
1217 * decl.c (compute_array_index_type): Don't instrument VLAs if the
1218 function has no_sanitize_undefined attribute.
1220 2014-06-30 Igor Zamyatin <igor.zamyatin@intel.com>
1223 * cp-array-notation.c (expand_sec_reduce_builtin):
1224 Check that bultin argument is correct.
1225 * call.c (build_cxx_call): Check for 0 arguments in builtin call.
1227 2014-06-28 Jonathan Wakely <jwakely@redhat.com>
1231 * typeck.c (check_return_expr): Lookup as an rvalue even when the
1232 types aren't the same.
1234 2014-06-27 Jason Merrill <jason@redhat.com>
1237 * error.c (dump_template_bindings): Don't tsubst in a clone.
1239 2014-06-27 Paolo Carlini <paolo.carlini@oracle.com>
1242 * semantics.c (finish_compound_literal): Revert r204228.
1244 2014-06-27 Paolo Carlini <paolo.carlini@oracle.com>
1246 * parser.c (cp_parser_compound_literal_p): New.
1247 (cp_parser_postfix_expression, cp_parser_sizeof_operand): Use it.
1249 2014-06-26 Jason Merrill <jason@redhat.com>
1251 * parser.c (cp_parser_for_init_statement): Change range-for error
1254 N3994 Ranged-based for-loops: The Next Generation
1255 * parser.c (cp_lexer_nth_token_is): New.
1256 (cp_parser_for_init_statement): Allow "for (id : init)".
1258 2014-06-26 Teresa Johnson <tejohnson@google.com>
1260 * class.c (dump_class_hierarchy): Use saved dump files.
1261 (dump_vtable): Ditto.
1264 2014-06-26 Adam Butcher <adam@jessamine.co.uk>
1267 * parser.c (cp_parser_elaborated_type_specifier): Only consider template
1268 parameter lists outside of function parameter scope.
1270 2014-06-25 Paolo Carlini <paolo.carlini@oracle.com>
1274 * typeck2.c (process_init_constructor_record): Do not complain about
1275 uninitialized const members, because within aggregate-initialization,
1276 members without explicit initializers are value-initialized.
1278 2014-06-25 Jakub Jelinek <jakub@redhat.com>
1280 * semantics.c (finish_omp_clauses): Make sure
1281 OMP_CLAUSE_LINEAR_STEP has correct type.
1283 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
1285 * class.c (check_methods, create_vtable_ptr, determine_key_method,
1286 add_vcall_offset_vtbl_entries_1): Guard VINDEX checks by
1287 FUNCTION_DECL check.
1288 * cp-tree.h (lang_decl_ns): Add ns_using and ns_users.
1289 (DECL_NAMESPACE_USING, DECL_NAMESPACE_USERS): Use lang_decl_ns.
1290 (DECL_NAMESPACE_ASSOCIATIONS): Use DECL_INITIAL.
1291 (DECL_TEMPLATE_INSTANTIATIONS): Use DECL_SIZE_UNIT.
1293 2014-06-24 Paolo Carlini <paolo.carlini@oracle.com>
1296 * decl.c (grokdeclarator): Do not early check for operator-function-id
1299 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
1301 * class.c, semantics.c, tree.c, vtable-class-hierarchy.c:
1304 2014-06-24 Jakub Jelinek <jakub@redhat.com>
1306 * parser.c (cp_parser_omp_for_loop): For
1307 #pragma omp parallel for simd move lastprivate clause from parallel
1308 to for rather than simd.
1310 2014-06-23 Paolo Carlini <paolo.carlini@oracle.com>
1314 * decl.c (grokparms): Accept a single parameter of type 'void'.
1316 2014-06-20 Jason Merrill <jason@redhat.com>
1319 * call.c (add_function_candidate): Avoid special 'this' handling
1320 if we have a ref-qualifier.
1323 * call.c (build_over_call): Call build_this in template path.
1325 2014-06-19 Jason Merrill <jason@redhat.com>
1328 * call.c (add_function_candidate): Also set LOOKUP_NO_TEMP_BIND.
1330 2014-06-18 Jason Merrill <jason@redhat.com>
1333 * call.c (add_function_candidate): Set LOOKUP_NO_RVAL_BIND for
1334 ref-qualifier handling.
1337 * pt.c (resolve_overloaded_unification): Preserve
1338 ARGUMENT_PACK_EXPLICIT_ARGS.
1340 2014-06-18 Jakub Jelinek <jakub@redhat.com>
1342 * cp-gimplify.c (cxx_omp_finish_clause): Add a gimple_seq *
1344 * cp-tree.h (cxx_omp_finish_clause): Adjust prototype.
1346 2014-06-17 Jason Merrill <jason@redhat.com>
1349 * pt.c (check_default_tmpl_args): Check DECL_LOCAL_FUNCTION_P.
1351 2014-06-15 Jason Merrill <jason@redhat.com>
1354 * pt.c (check_valid_ptrmem_cst_expr): Fix for template context.
1357 * tree.c (lvalue_kind): Handle MEMBER_REF and DOTSTAR_EXPR.
1359 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
1361 * decl.c (grokvardecl): Fix pasto in previous patch.
1363 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
1365 * decl.c (duplicate_decls): Use set_decl_tls_model.
1366 (grokdeclarator): Likewise.
1367 * semantics.c (finish_id_expression): Check TLS only for
1369 (finish_omp_threadprivate): Use decl_default_tls_model.
1370 * decl2.c (get_guard): Likewise.
1371 * call.c (make_temporary_var_for_ref_to_temp): Likewise.
1373 2014-06-14 Paolo Carlini <paolo.carlini@oracle.com>
1376 * decl.c (grokparms): Improve error message about void parameters.
1377 * error.c (type_to_string): Fix aka cut off code.
1379 2014-06-12 Jason Merrill <jason@redhat.com>
1381 * call.c (convert_arg_to_ellipsis): Use abi_version_crosses.
1382 * cvt.c (type_promotes_to): Likewise.
1383 * mangle.c (write_type, write_expression): Likewise.
1384 (write_name, write_template_arg): Likewise.
1385 (mangle_decl): Make alias based on flag_abi_compat_version.
1386 Emit -Wabi warning here.
1387 (finish_mangling_internal): Not here. Drop warn parm.
1388 (finish_mangling_get_identifier, finish_mangling): Adjust.
1389 (mangle_type_string, mangle_special_for_type): Adjust.
1390 (mangle_ctor_vtbl_for_type, mangle_thunk): Adjust.
1391 (mangle_guard_variable, mangle_tls_init_fn): Adjust.
1392 (mangle_tls_wrapper_fn, mangle_ref_init_variable): Adjust.
1394 * call.c (build_operator_new_call): Remove -fabi-version=1 support.
1395 * class.c (walk_subobject_offsets, include_empty_classes): Likewise.
1396 (layout_nonempty_base_or_field, end_of_class): Likewise.
1397 (layout_empty_base, build_base_field, layout_class_type): Likewise.
1398 (is_empty_class, add_vcall_offset_vtbl_entries_1): Likewise.
1399 (layout_virtual_bases): Likewise.
1400 * decl.c (compute_array_index_type): Likewise.
1401 * mangle.c (write_mangled_name, write_prefix): Likewise.
1402 (write_template_prefix, write_integer_cst, write_expression): Likewise.
1403 (write_template_arg, write_array_type): Likewise.
1404 * method.c (lazily_declare_fn): Likewise.
1405 * rtti.c (get_pseudo_ti_index): Likewise.
1406 * typeck.c (comp_array_types): Likewise.
1408 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
1410 * vtable-class-hierarchy.c: Update handling for section names
1411 that are no longer trees.
1412 * decl.c (duplicate_decls): Likewise.
1414 2014-06-11 Paolo Carlini <paolo.carlini@oracle.com>
1417 * parser.c (cp_parser_init_declarator): Actually pass friend_p
1418 to cp_parser_declarator.
1420 2014-06-11 Paolo Carlini <paolo.carlini@oracle.com>
1423 * parser.c (cp_parser_using_declaration): Handle unscoped enums.
1424 * name-lookup.c (validate_nonmember_using_decl): Adjust error
1427 2014-06-11 Paolo Carlini <paolo.carlini@oracle.com>
1430 * parser.c (cp_parser_declarator): Add bool parameter.
1431 (cp_parser_direct_declarator): Likewise, use it.
1432 (cp_parser_member_declaration): Pass friend_p to cp_parser_declarator.
1433 (cp_parser_condition, cp_parser_explicit_instantiation,
1434 cp_parser_init_declarator, cp_parser_type_id_1,
1435 cp_parser_parameter_declaration, cp_parser_exception_declaration,
1436 cp_parser_cache_defarg, cp_parser_objc_class_ivars,
1437 cp_parser_objc_struct_declaration, cp_parser_omp_for_loop_init):
1439 * decl.c (grokdeclarator): Fix handling of friend declared in
1440 namespace scope (g++.dg/parse/friend10.C).
1442 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
1444 * vtable-class-hierarchy.c: Use symtab_get_node (var_decl)
1446 * optimize.c (cdtor_comdat_group): Fix handling of aliases.
1447 (maybe_clone_body): Move symbol across comdat groups.
1448 * method.c (use_thunk): Copy implicit section flag.
1450 2014-06-09 Paolo Carlini <paolo.carlini@oracle.com>
1453 * name-lookup.c (pushdecl_maybe_friend_1): Use comptypes.
1455 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
1457 * method.c (use_thunk): Use set_decl_section_name.
1458 * optimize.c (maybe_clone_body): Use set_decl_section_name.
1459 * decl.c (duplicate_decls): Likewise.
1460 * vtable-class-hierarchy.c: Likewise.
1462 2014-06-06 Paolo Carlini <paolo.carlini@oracle.com>
1465 * class.c (check_field_decls): In C++11 mode do not reject
1466 static data members and reference-type members in unions.
1468 2014-06-05 Jason Merrill <jason@redhat.com>
1471 * decl.c (check_initializer): Collapse a TREE_LIST here.
1472 * typeck2.c (store_init_value): Not here.
1474 2014-06-05 Richard Biener <rguenther@suse.de>
1475 Paolo Carlini <paolo.carlini@oracle.com>
1478 * cp-gimplify.c (cp_gimplify_expr, [MODIFY_EXPR]): Rework
1479 handling of empty classes.
1481 2014-06-04 Jason Merrill <jason@redhat.com>
1483 * parser.c (cp_parser_diagnose_invalid_type_name): Give helpful note
1484 for noexcept and thread_local, too.
1487 * decl.c (check_initializer): Maybe clear
1488 DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P.
1490 2014-06-05 Richard Biener <rguenther@suse.de>
1493 * typeck.c (cp_build_indirect_ref): Do not emit strict-aliasing
1494 warnings for accessing empty classes.
1496 2014-06-05 Marek Polacek <polacek@redhat.com>
1499 * parser.c (cp_parser_binary_expression): Warn when logical not is
1500 used on the left hand side operand of a comparison.
1502 2014-06-04 Paolo Carlini <paolo.carlini@oracle.com>
1505 * typeck.c (cp_build_modify_expr): Handle array of characters
1506 initialized by a string literal.
1507 * decl.c (check_initializer): Handle parenthesized string literal
1509 * typeck2.c (store_init_value): Remove redundant check.
1511 2014-06-04 Jason Merrill <jason@redhat.com>
1515 * cp-gimplify.c (cp_gimplify_expr): Handle CALL_EXPR_LIST_INIT_P here.
1516 * semantics.c (simplify_aggr_init_expr): Not here, just copy it.
1518 2014-06-04 Igor Zamyatin <igor.zamyatin@intel.com>
1521 * cp-array-notation.c (expand_sec_reduce_builtin): Handle the case
1524 2014-06-03 Paolo Carlini <paolo.carlini@oracle.com>
1528 * call.c (standard_conversion): Convert nullptr to bool only
1529 in case of direct-initialization.
1530 (convert_like_real): Provide informative error message.
1532 2014-06-03 Marek Polacek <polacek@redhat.com>
1535 * semantics.c (finish_switch_cond): Warn if switch condition has
1538 2014-06-03 Jason Merrill <jason@redhat.com>
1541 * pt.c (tsubst_copy) [VAR_DECL]: Try lookup first. Add a new
1542 variable to local_specializations.
1545 * call.c (is_std_init_list): Check CLASSTYPE_TEMPLATE_INFO.
1547 2014-06-02 Jason Merrill <jason@redhat.com>
1550 * decl.c (reshape_init_class): Handle un-folded
1551 constant-expressions.
1554 * pt.c (pack_deducible_p): Handle canonicalization.
1556 2014-06-02 Paolo Carlini <paolo.carlini@oracle.com>
1558 * pt.c (tsubst_function_type): Initialize arg_types.
1560 2014-06-02 Siva Chandra Reddy <sivachandra@google.com>
1563 * class.c (handle_using_decl): Pass the correct scope to
1564 cp_emit_debug_info_for_using.
1566 2014-06-02 Ville Voutilainen <ville.voutilainen@gmail.com>
1570 * search.c (accessible_p): Use current_nonlambda_class_type.
1571 * semantics.c (check_accessibility_of_qualified_id): Likewise.
1573 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
1575 * decl.c: Include builtins.h.
1576 * semantics.c: Likewise.
1578 2014-05-31 Paolo Carlini <paolo.carlini@oracle.com>
1582 * cp-tree.h (TYPE_HAS_LATE_RETURN_TYPE): Add.
1583 * pt.c (tsubst_function_type): Inject the this parameter; do the
1584 substitutions in the order mandated by the DR.
1585 (copy_default_args_to_explicit_spec): Copy TYPE_HAS_LATE_RETURN_TYPE.
1586 * decl.c (grokdeclarator): Maybe set TYPE_HAS_LATE_RETURN_TYPE.
1587 (static_fn_type): Copy it.
1588 * decl2.c (build_memfn_type, change_return_type,
1589 cp_reconstruct_complex_type): Likewise.
1590 * parser.c (cp_parser_lambda_declarator_opt): Likewise.
1591 * tree.c (strip_typedefs): Likewise.
1592 * typeck.c (merge_types): Likewise.
1594 2014-05-30 Jason Merrill <jason@redhat.com>
1597 * pt.c (instantiate_decl): Check that defer_ok is not set for
1598 local class members.
1601 * pt.c (tsubst_init): Split out from...
1602 (tsubst_expr) [DECL_EXPR]: Here.
1603 (tsubst_copy) [VAR_DECL]: Use it.
1604 * semantics.c (finish_id_expression): Return the decl for static/const.
1606 2014-05-28 Jason Merrill <jason@redhat.com>
1609 * decl.c (cxx_comdat_group): Return a decl.
1610 * optimize.c (cdtor_comdat_group): Get its DECL_ASSEMBLER_NAME.
1612 * pt.c (tsubst) [ARRAY_TYPE]: Check for array of array of unknown
1616 * call.c (build_aggr_conv): Ignore passed in flags.
1617 (build_array_conv, build_complex_conv): Likewise.
1619 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
1621 * optimize.c (maybe_thunk_body): Use set_comdat_group.
1622 (maybe_clone_body): Likewise.
1623 * decl.c (duplicate_decls): Update code duplicating comdat group;
1624 do not copy symtab pointer; before freeing newdecl remove it
1626 * decl2.c (constrain_visibility): Use set_comdat_group.
1628 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
1630 * rtti.c: Include tm_p.h
1631 (emit_tinfo_decl): Force RTTI data to be aligned to required
1634 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
1636 * class.c (build_vtable): Align vtables to TARGET_VTABLE_ENTRY_ALIGN
1637 ignoring other target adjustments.
1639 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
1641 * semantics.c (finish_omp_clauses): Remove duplicated variable
1644 * parser.c (cp_parser_omp_target): Return bool values.
1646 2014-05-22 Paolo Carlini <paolo.carlini@oracle.com>
1649 * lambda.c (add_capture): Enforce that capture by value requires
1651 * typeck2.c (cxx_incomplete_type_inform): Early return if
1652 TYPE_MAIN_DECL is null.
1654 2014-05-21 Jonathan Wakely <jwakely@redhat.com>
1657 * cp-array-notation.c (cilkplus_an_triplet_types_ok_p): Fix condition.
1659 2014-05-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1662 * lambda.c (build_capture_proxy, add_capture): Treat normal
1663 captures and init-captures identically.
1665 2014-05-21 Mark Wielaard <mjw@redhat.com>
1668 * cp-lang.c (cxx_enum_underlying_base_type): New function.
1669 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): Define.
1671 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1673 * cvt.c (convert_to_void): Use void_node instead of void_zero_node.
1674 * cp-array-notation.c (replace_invariant_exprs): Likewise.
1675 (expand_array_notation): Handle VOID_CST.
1676 * error.c (dump_expr): Likewise.
1677 * cxx-pretty-print.c (cxx_pretty_printer::primary_expression)
1678 (cxx_pretty_printer::expression): Likewise.
1679 (pp_cxx_new_expression): Use void_node instead of void_zero_node.
1680 * decl.c (register_dtor_fn): Likewise.
1681 * init.c (build_raw_new_expr, build_new_1, build_vec_init)
1682 (build_delete, push_base_cleanups): Likewise.
1683 * mangle.c (write_expression): Likewise.
1684 * semantics.c (finish_break_stmt, empty_expr_stmt_p): Likewise.
1685 * pt.c (tsubst_decl, tsubst_copy_and_build): Likewise.
1686 (tsubst, tsubst_copy, build_non_dependent_expr): Handle VOID_CST.
1687 * tree.c (cp_tree_equal): Likewise.
1688 (build_dummy_object, is_dummy_object, stabilize_expr): Use void_node
1689 instead of void_zero_node.
1690 * typeck.c (check_return_expr): Likewise.
1691 * typeck2.c (build_functional_cast): Likewise.
1693 2014-05-21 Igor Zamyatin <igor.zamyatin@intel.com>
1696 * parser.c (cp_parser_postfix_expression): Move handling of cilk_sync
1698 (cp_parser_statement): ...here. Make sure only semicolon can go after
1701 2014-05-20 Paolo Carlini <paolo.carlini@oracle.com>
1706 * typeck2.c (digest_nsdmi_init): New.
1707 * parser.c (cp_parser_late_parse_one_default_arg): Use it.
1708 * init.c (get_nsdmi): Likewise.
1709 * cp-tree.h (digest_nsdmi_init): Declare.
1711 2014-05-20 Jason Merrill <jason@redhat.com>
1713 * typeck.c (get_member_function_from_ptrfunc): Don't try to look
1714 up a virtual function in a dummy object.
1716 2014-05-20 Paolo Carlini <paolo.carlini@oracle.com>
1719 * decl.c (duplicate_decls): Replace pair of warning_at with
1720 warning_at + inform.
1721 (maybe_commonize_var): Likewise.
1723 2014-05-20 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1726 * pt.c (tsubst_copy, tsubst_omp_for_iterator, tsubst_expr)
1727 (tsubst_copy_and_build): Perform recursive substitutions in a
1728 deterministic order.
1730 2014-05-20 Paolo Carlini <paolo.carlini@oracle.com>
1733 * typeck2.c (cxx_incomplete_type_inform): New.
1734 (cxx_incomplete_type_diagnostic): Use it.
1735 * decl.c (grokdeclarator): Check the element type of an
1736 incomplete array type; call the above.
1737 * cp-tree.h (cxx_incomplete_type_inform): Declare.
1739 2014-05-19 Jason Merrill <jason@redhat.com>
1742 * pt.c (tsubst_copy): Don't check at_function_scope_p.
1743 (instantiate_class_template_1): Don't push_to_top_level in an nsdmi.
1745 2014-05-19 Paolo Carlini <paolo.carlini@oracle.com>
1747 * typeck2.c (cxx_incomplete_type_diagnostic): Use inform.
1748 * parser.c (cp_parser_enum_specifier): Likewise.
1750 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1752 * class.c (sorted_fields_type_new): Adjust.
1753 * cp-cilkplus.c (cilk_install_body_with_frame_cleanup): Likewise.
1754 * cp-objcp-common.c (decl_shadowed_for_var_insert): Likewise.
1755 * cp-tree.h: Remove usage of variable_size gty attribute.
1756 * decl.c (make_label_decl): Adjust.
1757 (check_goto): Likewise.
1758 (start_preparsed_function): Likewise.
1759 (save_function_data): Likewise.
1760 * lex.c (init_reswords): Likewise.
1761 (retrofit_lang_decl): Likewise.
1762 (cxx_dup_lang_specific_decl): Likewise.
1763 (copy_lang_type): Likewise.
1764 (cxx_make_type): Likewise.
1765 * name-lookup.c (binding_entry_make): Likewise.
1766 (binding_table_construct): Likewise.
1767 (binding_table_new): Likewise.
1768 (cxx_binding_make): Likewise.
1769 (pushdecl_maybe_friend_1): Likewise.
1770 (begin_scope): Likewise.
1771 (push_to_top_level): Likewise.
1772 * parser.c (cp_lexer_alloc): Likewise.
1773 (cp_lexer_new_from_tokens): Likewise.
1774 (cp_token_cache_new): Likewise.
1775 (cp_parser_context_new): Likewise.
1776 (cp_parser_new): Likewise.
1777 (cp_parser_nested_name_specifier_opt): Likewise.
1778 (cp_parser_template_id): Likewise.
1779 * pt.c (maybe_process_partial_specialization): Likewise.
1780 (register_specialization): Likewise.
1781 (add_pending_template): Likewise.
1782 (lookup_template_class_1): Likewise.
1783 (push_tinst_level): Likewise.
1784 * semantics.c (register_constexpr_fundef): Likewise.
1785 (cxx_eval_call_expression): Likewise.
1786 * typeck2.c (abstract_virtuals_error_sfinae): Likewise.
1788 2014-05-16 Paolo Carlini <paolo.carlini@oracle.com>
1791 * parser.c (cp_parser_diagnose_invalid_type_name): Early return
1792 when cp_parser_lookup_name sets ambiguous_decls.
1794 2014-05-15 Jason Merrill <jason@redhat.com>
1796 * call.c (print_conversion_rejection): Use loc consistently.
1798 2014-05-14 Paolo Carlini <paolo.carlini@oracle.com>
1800 * cp-tree.h (DIRECT_LIST_INIT_P): Add.
1801 * call.c (convert_like_real, build_new_method_call_1): Use it.
1802 * decl2.c (grokfield): Likewise.
1803 * init.c (perform_member_init, build_aggr_init, expand_default_init,
1804 build_new_1): Likewise.
1805 * mangle.c (write_expression): Likewise.
1806 * parser.c (cp_parser_late_parse_one_default_arg): Likewise.
1808 2014-05-14 Jason Merrill <jason@redhat.com>
1812 * call.c (reference_binding): Treat lvalue/rvalue mismatch and
1813 dropped cv-quals as a bad conversion.
1814 (convert_like_real) [ck_ref_bind]: Explain them.
1815 (compare_ics): Check badness before stripping reference
1816 bindings. Handle comparing bad reference bindings.
1817 * typeck.c (comp_cv_qualification): Add overload that just takes
1819 * cp-tree.h: Declare it.
1821 * call.c (struct conversion_info): Rename 'from_type' to 'from'.
1822 (arg_conversion_rejection, bad_arg_conversion_rejection)
1823 (explicit_conversion_rejection, template_conversion_rejection): Adjust.
1824 (add_function_candidate): Pass actual argument, rather than type, to
1825 bad_arg_conversion_rejection.
1826 (print_conversion_rejection): Explain what's wrong with the conversion.
1827 (print_z_candidates): Say "candidate:" before each candidate.
1828 (splice_viable): Be strict if we see a viable or template candidate.
1829 (build_user_type_conversion_1): Pass false to strict parameter.
1830 (perform_overload_resolution, build_conditional_expr_1): Likewise.
1831 (build_new_op_1, build_new_method_call_1): Likewise.
1832 (build_op_call_1): Pass true to strict parameter.
1834 2014-05-13 Jason Merrill <jason@redhat.com>
1836 * call.c (print_error_for_call_failure): Say "no match" rather
1837 than "ambiguous" if there were no strict matches.
1838 (build_new_method_call_1): Likewise.
1841 * semantics.c (is_this_parameter): Allow capture proxies too.
1843 2014-05-12 Jason Merrill <jason@redhat.com>
1845 * call.c (maybe_print_user_conv_context): New.
1846 (convert_like_real): Use it. Print call context for bad
1847 user-defined conversion.
1848 (build_over_call): Print call context for bad 'this' conversion.
1850 * call.c (convert_like_real): Use inform for identifying the
1853 2014-05-12 Paolo Carlini <paolo.carlini@oracle.com>
1855 * cvt.c (cp_convert_to_pointer): Don't call error_at if
1856 complain & tf_error is false.
1858 * decl.c (make_unbound_class_template): Prefer inform for
1859 "declared here"-type message.
1861 2014-05-09 Momchil Velikov <momchil.velikov@gmail.com>
1865 * lambda.c (lambda_expr_this_capture): Add new parameter
1866 add_capture_p controlling whether the functions will try to
1867 capture 'this' via the default capture.
1868 (maybe_resolve_dummy): Likewise.
1869 * cp-tree.h: Adjust prototypes.
1870 * call.c, semantics.c: Change callers of these functions.
1871 * call.c (build_new_method_call_1): Use the actual 'this' that
1872 would be potentially captured for the overload resolution, instead
1873 of the dummy object.
1875 2014-05-09 Paolo Carlini <paolo.carlini@oracle.com>
1877 * pt.c (convert_nontype_argument_function): Add tsubst_flags_t
1879 (convert_nontype_argument): Adjust calls.
1880 (coerce_template_parameter_pack): Add missing complain & tf_error
1883 2014-05-09 Jason Merrill <jason@redhat.com>
1887 * call.c (build_conditional_expr_1, conditional_conversion): Handle
1888 non-class lvalues and xvalues that differ only in cv-qualifiers.
1892 * call.c (build_user_type_conversion_1): The copy-init temporary
1896 * tree.c (stabilize_expr): A stabilized prvalue is an xvalue.
1899 * call.c (build_conditional_expr_1): If overload resolution finds
1900 no match, just say "different types".
1903 * call.c (build_conditional_expr_1): Improve ambiguity diagnostic.
1906 * call.c (build_conditional_expr_1): Don't try to pool cv-quals
1907 if we didn't find a conversion.
1908 Don't accept a bad conversion too early.
1910 2014-05-08 Paolo Carlini <paolo.carlini@oracle.com>
1913 * typeck.c (convert_for_assignment): Provide an inform for pointers
1914 to incomplete class types.
1916 2014-05-07 Paolo Carlini <paolo.carlini@oracle.com>
1919 * pt.c (convert_nontype_argument): Protect all the error calls
1920 with complain & tf_error.
1922 2014-05-07 Paolo Carlini <paolo.carlini@oracle.com>
1925 * pt.c (instantiate_decl): Avoid generating the body of a
1928 2014-05-06 Paolo Carlini <paolo.carlini@oracle.com>
1931 * pt.c (maybe_begin_member_template_processing): Use
1932 uses_template_parms.
1934 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1935 Mike Stump <mikestump@comcast.net>
1936 Richard Sandiford <rdsandiford@googlemail.com>
1938 * call.c: Include wide-int.h.
1939 (type_passed_as): Use tree_int_cst_lt instead of INT_CST_LT_UNSIGNED.
1940 (convert_for_arg_passing): Likewise.
1941 * class.c: Include wide-int.h.
1942 (walk_subobject_offsets): Use tree_int_cst_lt instead of INT_CST_LT.
1943 (end_of_class): Use tree_int_cst_lt instead of INT_CST_LT_UNSIGNED.
1944 (include_empty_classes): Likewise
1945 (layout_class_type): Use tree_int_cst_lt instead of INT_CST_LT.
1946 * cvt.c: Include wide-int.h.
1947 (ignore_overflows): Use wide_int_to_tree.
1948 * decl.c: Include wide-int.h.
1949 (check_array_designated_initializer): Use wide-int interfaces.
1950 (compute_array_index_type): Use tree_int_cst_lt instead of INT_CST_LT.
1951 (finish_enum_value_list): Use signop.
1952 (build_enumerator): Use wide-int interfaces.
1953 * init.c: Include wide-int.h.
1954 (build_new_1): Use wide-int interfaces.
1955 * mangle.c: Include wide-int.h.
1956 (write_integer_cst): Use wide-int interfaces.
1957 (write_array_type): Likewise.
1958 * tree.c: Include wide-int.h.
1959 (cp_tree_equal): Use tree_int_cst_equal.
1960 * typeck2.c: Include wide-int.h.
1961 (process_init_constructor_array): Use wide-int interfaces.
1963 2014-05-03 Paolo Carlini <paolo.carlini@oracle.com>
1966 * decl.c (grokfndecl): Check duplicate_decls return value for
1968 * pt.c (instantiate_decl): A deleted function is defined.
1970 2014-05-02 Jason Merrill <jason@redhat.com>
1972 * decl2.c (vague_linkage_p): Local statics have vague linkage.
1975 * lambda.c (lambda_capture_field_type): Wrap anything dependent
1977 (add_capture): Check for VLA before calling it.
1978 * semantics.c (is_this_parameter): Accept any 'this' parameter, not
1979 just the current one. Make non-static.
1980 * cp-tree.h: Declare it.
1981 * pt.c (tsubst_copy) [VAR_DECL]: Also build a new VAR_DECL if
1982 the operand was static or constant.
1984 2014-05-02 Marek Polacek <polacek@redhat.com>
1986 * typeck.c (maybe_warn_about_returning_address_of_local): Separate
1989 2014-05-01 Marek Polacek <polacek@redhat.com>
1992 * typeck.c (maybe_warn_about_returning_address_of_local): Distinguish
1993 between label and variable when warning about returning local address.
1995 2014-04-30 Jason Merrill <jason@redhat.com>
1998 * init.c (build_value_init): Don't try to call an array constructor.
2001 * typeck2.c (massage_init_elt): Use maybe_constant_init.
2003 2014-04-30 Marek Polacek <polacek@redhat.com>
2005 * typeck.c (cp_build_binary_op): Call ubsan_instrument_division
2006 even when SANITIZE_FLOAT_DIVIDE is on. Set doing_div_or_mod even
2007 for non-integer types.
2009 2014-04-29 Jason Merrill <jason@redhat.com>
2012 Represent the unevaluated exception specification of an implicitly
2013 declared or deleted function with a simple placeholder, not a list
2015 * cp-tree.h (UNEVALUATED_NOEXCEPT_SPEC_P): New.
2016 * except.c (unevaluated_noexcept_spec): New.
2017 * class.c (deduce_noexcept_on_destructor): Use it.
2018 * decl.c (check_redeclaration_exception_specification): Call
2019 maybe_instantiate_noexcept.
2020 (duplicate_decls): Call it before merge_types.
2021 (start_preparsed_function): Call maybe_instantiate_noexcept.
2022 * decl2.c (mark_used): Call maybe_instantiate_noexcept earlier.
2023 * init.c (get_nsdmi): Factor out of perform_member_init.
2024 * method.c (process_subob_fn): Call maybe_instantiate_noexcept.
2025 (walk_field_subobs): Consider NSDMI for EH spec.
2026 (get_defaulted_eh_spec): New.
2027 (implicitly_declare_fn): Use unevaluated_noexcept_spec.
2028 (defaulted_late_check): Defer EH checking in non-template classes.
2029 (after_nsdmi_defaulted_late_checks): New.
2030 * parser.c (cp_parser_class_specifier_1): Use it.
2031 (unparsed_classes): New macro.
2032 * parser.h (cp_unparsed_functions_entry_d): Add classes field.
2033 * pt.c (maybe_instantiate_noexcept): Use get_defaulted_eh_spec.
2034 Remove list-of-functions handling.
2035 * typeck2.c (merge_exception_specifiers): Remove list-of-functions
2036 handling and FN parameter.
2037 * typeck.c (merge_types): Adjust.
2039 2014-04-28 Paolo Carlini <paolo.carlini@oracle.com>
2042 * parser.c (cp_parser_alias_declaration): Check return value of
2045 2014-04-24 Jakub Jelinek <jakub@redhat.com>
2047 * parser.c (cp_parser_omp_atomic): Allow seq_cst before
2048 atomic-clause, allow comma in between atomic-clause and
2051 2014-04-24 Marc Glisse <marc.glisse@inria.fr>
2054 * rtti.c (emit_support_tinfos): Do not iterate on
2055 registered_builtin_types (partial revert).
2057 2014-04-23 Dinar Temirbulatov <dtemirbulatov@gmail.com>
2060 * semantics.c (apply_deduced_return_type): Complete non-void type
2061 before estimating whether the type is aggregate.
2063 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
2066 * rtti.c (emit_support_tinfo_1): New function, extracted from
2067 emit_support_tinfos.
2068 (emit_support_tinfos): Call it and iterate on registered_builtin_types.
2070 2014-04-22 Jakub Jelinek <jakub@redhat.com>
2073 * parser.c (cp_parser_omp_parallel): If cp_parser_omp_for
2074 fails, don't set OM_PARALLEL_COMBINED and return NULL.
2076 2014-04-18 Jason Merrill <jason@redhat.com>
2079 * call.c (reference_binding): Recurse on user-defined conversion.
2082 * call.c (standard_conversion): Don't try to apply restrict to void.
2084 2014-04-16 Marc Glisse <marc.glisse@inria.fr>
2086 * decl.c (reshape_init_r): Handle a single element of vector type.
2088 2014-04-16 Patrick Palka <patrick@parcs.ath.cx>
2091 * decl2.c (cplus_decl_attributes): Handle
2092 pointer-to-member-function declarations.
2094 2014-04-16 Patrick Palka <patrick@parcs.ath.cx>
2097 * call.c (build_user_type_coversion): Use build_dummy_object
2098 to create the placeholder object for a constructor method call.
2099 (build_special_member_call): Likewise.
2100 (build_over_call): Check for the placeholder object with
2102 (build_new_method_call_1): Likewise. Don't attempt to resolve
2103 a dummy object for a constructor method call.
2105 2014-04-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2108 * friend.c (add_friend, make_friend_class): Move repeated friend
2109 warning under Wredundant_decls.
2111 2014-04-15 Paolo Carlini <paolo.carlini@oracle.com>
2113 * decl.c (duplicate_decls): Remove redundant TYPE_NAME use.
2114 * name-lookup.c (pushdecl_maybe_friend_1): Likewise.
2115 (do_class_using_decl): Likewise.
2116 * mangle.c (dump_substitution_candidates): Use TYPE_NAME_STRING.
2118 2014-04-15 Jakub Jelinek <jakub@redhat.com>
2121 * Make-lang.h (CP_PLUGIN_HEADERS): Add type-utils.h.
2123 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
2125 * cp-tree.h (TYPE_IDENTIFIER): Remove declaration.
2127 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
2129 * pt.c (mark_template_parm): Use template_parm_level_and_index.
2131 2014-04-11 Jason Merrill <jason@redhat.com>
2133 * parser.h (struct cp_token): Rename ambiguous_p to error_reported.
2135 (cp_lexer_get_preprocessor_token): Always clear it.
2136 (cp_parser_lambda_expression): Use it to avoid duplicate diagnostics.
2140 * decl.c (reshape_init_r): Handle a single element of class type.
2143 * decl.c (cxx_init_decl_processing): Set DECL_IS_MALLOC on
2144 built-in operator new.
2146 2014-04-11 Paolo Carlini <paolo.carlini@oracle.com>
2149 * name-lookup.c (parse_using_directive): Return early if the
2150 attribs argument is error_mark_node; use get_attribute_name.
2152 2014-04-11 Jason Merrill <jason@redhat.com>
2156 * cp-tree.h (CALL_EXPR_LIST_INIT_P): New.
2157 * call.c (struct z_candidate): Add flags field.
2158 (add_candidate): Add flags parm.
2159 (add_function_candidate, add_conv_candidate, build_builtin_candidate)
2160 (add_template_candidate_real): Pass it.
2161 (build_over_call): Set CALL_EXPR_LIST_INIT_P.
2162 * tree.c (build_aggr_init_expr): Copy it.
2163 * semantics.c (simplify_aggr_init_expr): Preevaluate args if it's set.
2165 2014-04-10 Richard Biener <rguenther@suse.de>
2166 Jakub Jelinek <jakub@redhat.com>
2169 * error.c (dump_decl) <case FUNCTION_DECL>: If
2170 DECL_LANG_SPECIFIC is NULL, but DECL_ABSTRACT_ORIGIN is not,
2171 recurse on DECL_ABSTRACT_ORIGIN instead of printing
2174 2014-04-09 Fabien Chêne <fabien@gcc.gnu.org>
2176 * pt.c (check_template_variable): Check for the return of pedwarn
2177 before emitting a note.
2178 * parser.c (cp_parser_lambda_introducer): Likewise.
2180 2014-04-08 Paolo Carlini <paolo.carlini@oracle.com>
2183 * pt.c (process_template_parm): For an invalid non-type parameter
2184 only set TREE_TYPE to error_mark_node.
2185 (push_inline_template_parms_recursive, comp_template_parms,
2186 redeclare_class_template, coerce_template_template_parm,
2187 coerce_template_template_parms, unify): Use error_operand_p.
2189 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
2191 * class.c (check_bases_and_members): Warn about non-virtual dtors
2192 in public bases only. Check warn_ecpp before complaining about
2193 non-polymorphic bases.
2195 2014-04-04 Fabien Chêne <fabien@gcc.gnu.org>
2197 * decl.c (duplicate_decls): Check for the return of warning_at
2198 before emitting a note.
2199 (warn_misplaced_attr_for_class_type): Likewise.
2200 (check_tag_decl): Likewise.
2202 2014-04-04 Paolo Carlini <paolo.carlini@oracle.com>
2205 * semantics.c (sort_constexpr_mem_initializers): Robustify loop.
2207 2014-04-04 Patrick Palka <patrick@parcs.ath.cx>
2210 * semantics.c (add_stmt): Set STATEMENT_LIST_HAS_LABEL.
2211 * decl.c (cp_finish_decl): Create a new BIND_EXPR before
2212 instantiating a variable-sized type.
2215 * decl.c (decl_jump_unsafe): Consider variably-modified decls.
2217 2014-04-04 Fabien Chêne <fabien@gcc.gnu.org>
2219 * class.c (find_abi_tags_r): Check for the return of warning
2220 before emitting a note.
2221 (one_inherited_ctor): Likewise.
2223 2014-04-04 Fabien Chêne <fabien@gcc.gnu.org>
2225 * decl.c (duplicate_decls): Check for the return of permerror
2226 before emitting a note.
2228 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2230 * class.c (accessible_nvdtor_p): New.
2231 (check_bases): Don't check base destructor here ...
2232 (check_bases_and_members): ... check them here. Trigger on
2233 Wnon-virtual-dtor flag.
2234 (finish_struct_1): Use accessible_nvdtor_p.
2236 2014-04-01 Jason Merrill <jason@redhat.com>
2238 * pt.c (process_partial_specialization): Say "not deducible"
2239 rather than "not used". Use inform.
2242 * pt.c (coerce_template_parms): Check that the pack expansion
2243 pattern works with the first matching parameter.
2245 2014-04-01 Fabien Chêne <fabien@gcc.gnu.org>
2247 * init.c (perform_member_init): Homogenize uninitialized
2250 2014-04-01 Jason Merrill <jason@redhat.com>
2253 * call.c (build_array_conv): Call complete_type.
2256 * typeck2.c (PICFLAG_SIDE_EFFECTS): New.
2257 (picflag_from_initializer): Return it.
2258 (process_init_constructor): Handle it.
2261 * decl2.c (is_late_template_attribute): Don't defer abi_tag.
2262 * mangle.c (write_unqualified_name): Fix abi_tag on templates.
2263 * pt.c (get_template_info): Handle NAMESPACE_DECL.
2264 (most_general_template): Handle more kinds of template.
2265 * tree.c (handle_abi_tag_attribute): Ignore abi_tag on template
2266 instantiations and specializations.
2268 2014-03-31 Patrick Palka <patrick@parcs.ath.cx>
2271 * typeck.c (maybe_warn_about_returning_address_of_local): Unwrap
2272 COMPONENT_REFs and ARRAY_REFs sooner.
2274 2014-03-29 Adam Butcher <adam@jessamine.co.uk>
2277 * parser.c (cp_parser_init_declarator): Handle erroneous generic type
2278 usage in non-functions with pushed scope.
2280 2014-03-28 Adam Butcher <adam@jessamine.co.uk>
2283 * name-lookup.h (cp_binding_level): New transient field defining_class_p
2284 to indicate whether a scope is in the process of defining a class.
2285 * semantics.c (begin_class_definition): Set defining_class_p.
2286 * name-lookup.c (leave_scope): Reset defining_class_p.
2287 * parser.c (synthesize_implicit_template_parm): Use cp_binding_level::
2288 defining_class_p rather than TYPE_BEING_DEFINED as the predicate for
2289 unwinding to class-defining scope to handle the erroneous definition of
2290 a generic function of an arbitrarily nested class within an enclosing
2293 2014-03-26 Fabien Chêne <fabien@gcc.gnu.org>
2296 * method.c (walk_field_subobs): Improve the diagnostic
2297 locations for both REFERENCE_TYPEs and non-static const members.
2298 * init.c (diagnose_uninitialized_cst_or_ref_member): Use %q#D
2299 instead of %qD to be consistent with the c++11 diagnostic.
2301 2014-03-25 Jason Merrill <jason@redhat.com>
2305 * class.c (build_vtbl_initializer): Handle abstract dtors here.
2306 * search.c (get_pure_virtuals): Not here.
2309 * parser.c (cp_parser_lambda_expression): Don't parse the body of
2310 a lambda in unevaluated context.
2313 * decl.c (create_array_type_for_decl): Complain about array of auto.
2315 2014-03-25 Jakub Jelinek <jakub@redhat.com>
2318 * semantics.c (potential_constant_expression_1): Handle
2321 2014-03-24 Adam Butcher <adam@jessamine.co.uk>
2324 * parser.c (cp_parser_parameter_declaration_clause): Prevent 'auto' from
2325 introducing an implicit function template parameter within an explicit
2328 2014-03-22 Jason Merrill <jason@redhat.com>
2331 * decl.c (grokdeclarator): Change permerror about 'virtual auto'
2334 2014-03-21 Paolo Carlini <paolo.carlini@oracle.com>
2337 * name-lookup.c (push_class_level_binding_1): Check identifier_p
2338 on the name argument.
2340 2014-03-20 Jakub Jelinek <jakub@redhat.com>
2343 * init.c (build_zero_init_1): Ignore fields with error_mark_node
2346 2014-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2349 * call.c (build_new_method_call_1): Handle pure virtuals called by
2352 2014-03-17 Adam Butcher <adam@jessamine.co.uk>
2355 * parser.c (cp_parser_member_declaration): Don't allow
2356 finish_fully_implicit_template to consider friend declarations to be
2357 class member templates.
2358 (synthesize_implicit_template_parm): Handling winding back through class
2359 scope to the class being defined in order to inject a template argument
2363 * parser.c (cp_parser_skip_to_end_of_block_or_statement): Unwind generic
2364 function scope as per cp_parser_skip_to_end_of_statement.
2366 2014-03-17 Paolo Carlini <paolo.carlini@oracle.com>
2369 * typeck2.c (check_narrowing): Use fold_non_dependent_expr_sfinae.
2371 2014-03-14 Jason Merrill <jason@redhat.com>
2375 * search.c (get_pure_virtuals): Handle abstract dtor here.
2376 (dfs_get_pure_virtuals): Not here.
2379 * search.c (dfs_get_pure_virtuals): Treat the destructor of an
2380 abstract class as pure.
2382 2014-03-13 Paolo Carlini <paolo.carlini@oracle.com>
2385 * pt.c (maybe_process_partial_specialization): Check return value
2386 of check_specialization_namespace.
2388 2014-03-13 Paolo Carlini <paolo.carlini@oracle.com>
2391 * semantics.c (finish_static_assert): Call cxx_constant_value only
2392 if require_potential_rvalue_constant_expression returns true.
2394 2014-03-11 Paolo Carlini <paolo.carlini@oracle.com>
2397 * method.c (get_inherited_ctor): New.
2398 * cp-tree.h (get_inherited_ctor): Declare it.
2399 * semantics.c (is_valid_constexpr_fn): Use it.
2401 2014-03-10 Jason Merrill <jason@redhat.com>
2404 * call.c (convert_default_arg): Remove special handling for
2408 * parser.c (cp_parser_class_head): Also check PRIMARY_TEMPLATE_P
2409 when deciding whether to call push_template_decl for a member class.
2410 * pt.c (push_template_decl_real): Return after wrong levels error.
2412 2014-03-08 Adam Butcher <adam@jessamine.co.uk>
2415 * pt.c (tsubst_copy): When retrieving a capture pack from a generic
2416 lambda, remove the lambda's own template argument list prior to fetching
2420 * parser.c (cp_parser_parameter_declaration_clause): Move generic
2421 function template unwinding on error into a more general location, ...
2422 (cp_parser_skip_to_end_of_statement): ... here.
2424 2014-03-07 Jason Merrill <jason@redhat.com>
2426 * Make-lang.in (check_g++_parallelize): Split dg.exp.
2428 * parser.c (cp_parser_type_id_1): Only allow 'auto' in C++1y if
2429 we're in a trailing return type.
2431 * typeck.c (comp_template_parms_position): 'auto' and
2432 'decltype(auto)' are different from real template parms.
2434 * parser.c (cp_parser_using_declaration): Consume the semicolon
2435 after bare parameter pack error.
2437 * cp-tree.h (REF_PARENTHESIZED_P): New.
2438 * semantics.c (force_paren_expr): Set it.
2439 * pt.c (do_auto_deduction): Check it.
2440 (tsubst) [COMPONENT_REF]: Copy it.
2441 * typeck.c (maybe_warn_about_useless_cast): Don't strip dereference.
2443 * decl.c (create_array_type_for_decl): Only warn about invalid
2444 C++1y VLA if flag_iso or warn_vla>0.
2445 (grokdeclarator): Likewise.
2446 * pt.c (tsubst): Likewise.
2447 * semantics.c (finish_decltype_type): Likewise.
2448 * typeck.c (cxx_sizeof_or_alignof_type): Likewise.
2449 (cp_build_addr_expr_1): Likewise.
2450 * init.c (build_new_1): Improve diagnostics.
2452 2014-03-07 Paolo Carlini <paolo.carlini@oracle.com>
2455 * decl.c (check_initializer): Return NULL_TREE after error;
2456 consistently use inform.
2458 2014-03-07 Paolo Carlini <paolo.carlini@oracle.com>
2460 * decl.c (check_initializer): Remove dead code.
2462 2014-03-06 Marek Polacek <polacek@redhat.com>
2465 * typeck.c (check_return_expr): Call contains_cilk_spawn_stmt instead
2466 of checking tree code.
2468 2014-03-06 Paolo Carlini <paolo.carlini@oracle.com>
2470 * parser.c (cp_lexer_set_source_position): New.
2471 (cp_parser_mem_initializer): Use it.
2472 (cp_parser_postfix_open_square_expression): Likewise.
2473 (cp_parser_parenthesized_expression_list): Likewise.
2474 (cp_parser_new_initializer): Likewise.
2475 (cp_parser_jump_statement): Likewise.
2476 (cp_parser_initializer): Likewise.
2477 (cp_parser_functional_cast): Likewise.
2479 2014-03-05 Jason Merrill <jason@redhat.com>
2482 * semantics.c (force_paren_expr): Only add a PAREN_EXPR to a
2483 dependent expression.
2486 * parser.c (cp_parser_template_id): Don't set up a CPP_TEMPLATE_ID
2487 if re-parsing might succeed.
2488 * semantics.c (finish_id_expression): Use of a parameter outside
2489 the function body is a parse error.
2491 * parser.c (cp_parser_mem_initializer): Set input_location
2492 properly for init-list warning.
2493 (cp_parser_postfix_open_square_expression): Likewise.
2494 (cp_parser_parenthesized_expression_list): Likewise.
2495 (cp_parser_new_initializer): Likewise.
2496 (cp_parser_jump_statement): Likewise.
2497 (cp_parser_initializer): Likewise.
2498 (cp_parser_functional_cast): Likewise.
2500 2014-03-04 Jason Merrill <jason@redhat.com>
2503 * typeck2.c (process_init_constructor_record): Set
2504 CONSTRUCTOR_IS_DIRECT_INIT on {} for omitted initializers.
2508 * parser.c (cp_parser_direct_declarator): Set declarator to
2509 cp_error_declarator on invalid qualified-id.
2511 2014-03-04 Paolo Carlini <paolo.carlini@oracle.com>
2514 * parser.c (cp_parser_using_declaration): Early return when
2515 cp_parser_nested_name_specifier errors out.
2517 2014-03-01 Adam Butcher <adam@jessamine.co.uk>
2520 * parser.c (cp_parser_parameter_declaration_clause): Unwind generic
2521 function scope on parse error in function parameter list.
2523 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
2525 * method.c (implicitly_declare_fn): Remove redundant
2526 DECL_TEMPLATE_RESULT and STRIP_TEMPLATE uses.
2527 * semantics.c (is_instantiation_of_constexpr): Likewise.
2528 * error.c (dump_function_decl): Likewise.
2530 2014-03-01 Jason Merrill <jason@redhat.com>
2533 * semantics.c (begin_maybe_infinite_loop): Use
2534 fold_non_dependent_expr_sfinae.
2536 2014-02-28 Jason Merrill <jason@redhat.com>
2539 * typeck.c (cp_build_binary_op): Sorry on vector&&vector.
2541 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
2544 * cp-tree.h (DECL_DELETED_FN): Use LANG_DECL_FN_CHECK.
2545 * call.c (print_z_candidate): Remove STRIP_TEMPLATE use.
2546 * lambda.c (maybe_add_lambda_conv_op): Likewise.
2548 2014-02-27 Paolo Carlini <paolo.carlini@oracle.com>
2551 * call.c (convert_arg_to_ellipsis): Return error_mark_node after
2554 2014-02-27 Jason Merrill <jason@redhat.com>
2558 * decl2.c (tentative_decl_linkage): Don't mess with functions that
2559 are not yet defined.
2561 2014-02-26 Jason Merrill <jason@redhat.com>
2565 * class.c (clone_function_decl): Don't note_vague_linkage_fn.
2566 * init.c (build_vtbl_address): Do it here.
2572 * pt.c (struct warning_sentinel): New.
2573 (tsubst_copy_and_build): Use it instead of
2574 c_inhibit_evaluation_warnings.
2575 * typeck.c (maybe_warn_about_useless_cast): Remove
2576 c_inhibit_evaluation_warnings check.
2579 * pt.c (get_template_parm_index): New.
2580 (fixed_parameter_pack_p_1, fixed_parameter_pack_p): New.
2581 (process_template_parm): Allow bare packs in template template
2582 parm template parms.
2583 (coerce_template_parameter_pack): Handle fixed template template
2584 parm packs and fixed packs not at the end of the parm list.
2585 (coerce_template_parms): Handle template parm packs not at the end
2587 (gen_elem_of_pack_expansion_instantiation): Handle a decl expansion.
2590 * pt.c (unify): Ignore alias templates when deducing a template
2596 * call.c (reference_binding): Recurse on user-defined conversion.
2597 (convert_like_real) [ck_ref_bind]: Explain cv-qual mismatch.
2599 2014-02-25 Jason Merrill <jason@redhat.com>
2602 * call.c (reference_binding): Recurse on user-defined conversion.
2603 (convert_like_real) [ck_ref_bind]: Explain cv-qual mismatch.
2605 * call.c (print_conversion_rejection): Handle n_arg of -2.
2606 (build_user_type_conversion_1): Pass it.
2609 * decl2.c (no_linkage_error): Handle C++98 semantics.
2610 (reset_type_linkage): Move from decl.c.
2611 (reset_type_linkage_1, reset_type_linkage_2, bt_reset_linkage_1)
2612 (bt_reset_linkage_2, reset_decl_linkage): New.
2613 (tentative_decl_linkage): Factor out of expand_or_defer_fn_1.
2614 (cp_write_global_declarations): Move condition into no_linkage_error.
2615 * decl.c (grokfndecl, grokvardecl): Use no_linkage_error.
2616 * semantics.c (expand_or_defer_fn_1): Factor out
2617 tentative_decl_linkage.
2618 * cp-tree.h: Adjust.
2620 * decl2.c (finish_static_data_member_decl): Diagnose static data
2621 member in unnamed class.
2622 * class.c (finish_struct_anon_r): Avoid redundant diagnostic.
2625 * class.c (clone_function_decl): Call note_vague_linkage_fn for
2626 defaulted virtual dtor.
2630 * pt.c (get_underlying_template): Fix equivalence calculation.
2632 2014-02-25 Adam Butcher <adam@jessamine.co.uk>
2635 * parser.c (function_being_declared_is_template_p): Return false when
2636 processing a template parameter list.
2637 (cp_parser_parameter_declaration_clause): Don't set
2638 auto_is_implicit_function_template_parm_p when processing a
2639 template parameter list.
2641 * parser.c (synthesize_implicit_template_parm): Inject new template
2642 argument list appropriately when a generic member function
2643 of a class template is declared out-of-line.
2646 * parser.c (cp_parser_direct_declarator): Don't save and
2647 restore num_template_parameter_lists around call to
2648 cp_parser_parameter_declaration_list.
2649 (function_being_declared_is_template_p): New predicate.
2650 (cp_parser_parameter_declaration_list): Use
2651 function_being_declared_is_template_p as predicate for
2652 inspecting current function template parameter list length
2653 rather than num_template_parameter_lists.
2655 2014-02-24 Jason Merrill <jason@redhat.com>
2658 * pt.c (tsubst_omp_for_iterator): Don't let substitution of the
2659 DECL_EXPR initialize a non-class iterator.
2662 * parser.c (cp_parser_template_type_arg): Check for invalid 'auto'.
2664 2014-02-21 Jason Merrill <jason@redhat.com>
2667 * parser.c (cp_parser_type_name): Always check dependency.
2668 (cp_parser_type_specifier_seq): Call
2669 cp_parser_parse_and_diagnose_invalid_type_name.
2672 * semantics.c (expand_or_defer_fn_1): Check DECL_DEFAULTED_FN.
2675 * parser.c (cp_parser_default_argument): Clear
2676 current_class_ptr/current_class_ref like tsubst_default_argument.
2679 * lambda.c (maybe_resolve_dummy): Check lambda_function rather
2680 than current_binding_level.
2683 * typeck2.c (massage_init_elt): Call fold_non_dependent_expr_sfinae.
2686 * parser.c (cp_parser_enum_specifier): Call
2687 check_for_bare_parameter_packs.
2690 * pt.c (tsubst_decl) [TYPE_DECL]: Don't try to instantiate an
2694 * pt.c (lookup_template_class_1): Update DECL_TEMPLATE_INSTANTIATIONS
2695 of the partial instantiation, not the most general template.
2696 (maybe_process_partial_specialization): Reassign everything on
2700 * pt.c (register_specialization): Copy DECL_DELETED_FN to clones.
2701 (check_explicit_specialization): Don't clone.
2704 * pt.c (coerce_template_parms): Bail if argument packing fails.
2707 * decl.c (cp_complete_array_type, maybe_deduce_size_from_array_init):
2708 Don't get confused by a CONSTRUCTOR that already has a type.
2711 * call.c (build_array_conv): Don't crash on VLA.
2714 * mangle.c (mangle_decl): Don't make an alias for a TYPE_DECL.
2717 * lambda.c (maybe_resolve_dummy): Don't try to capture this
2718 in declaration context.
2722 * pt.c (unify): Only unify if deducible. Handle 0-length list.
2725 * parser.c (cp_parser_direct_declarator): Don't wrap a
2726 type-dependent expression in a NOP_EXPR.
2729 * lambda.c (is_normal_capture_proxy): Handle VLA capture.
2734 * parser.c (cp_parser_template_argument): Restore dereference.
2735 * pt.c (template_parm_to_arg): Dereference non-pack expansions too.
2736 (process_partial_specialization): Handle deref.
2739 2014-02-21 Adam Butcher <adam@jessamine.co.uk>
2743 * parser.c (cp_parser_parameter_declaration_list): Correctly reset
2744 implicit_template_scope upon leaving an out-of-line generic member
2745 function definition.
2747 2014-02-20 Kai Tietz <ktietz@redhat.com>
2750 * parser.c (cp_parser_functional_cast): Treat NULL_TREE
2751 valued type argument as error_mark_node.
2754 * semantics.c (finish_fname): Handle error_mark_node.
2756 2014-02-19 Jason Merrill <jason@redhat.com>
2759 * pt.c (maybe_instantiate_noexcept): Don't instantiate exception
2760 spec from template context.
2762 2014-02-19 Jakub Jelinek <jakub@redhat.com>
2765 * cp-objcp-common.c (cp_function_decl_explicit_p): Remove
2766 FUNCTION_FIRST_USER_PARMTYPE (decl) != void_list_node check.
2769 * pt.c (tsubst_expr): Handle ANNOTATE_EXPR.
2771 2014-02-18 Paolo Carlini <paolo.carlini@oracle.com>
2774 * semantics.c (ensure_literal_type_for_constexpr_object): Use
2777 2014-02-18 Paolo Carlini <paolo.carlini@oracle.com>
2780 * semantics.c (cxx_eval_constant_expression, [COMPONENT_REF]):
2781 During error recovery allow_non_constant may be false.
2783 2014-02-18 Adam Butcher <adam@jessamine.co.uk>
2786 * parser.c (cp_parser_lambda_declarator_opt): Pop template parameter
2787 scope whenever a template parameter list has been started, independent
2788 of whether the function call operator was well-formed or not.
2791 * parser.c (cp_parser_member_declaration): Pop fully implicit template
2792 scope for generic friend declarations as well as for non-friends.
2794 2014-02-12 Paolo Carlini <paolo.carlini@oracle.com>
2797 * method.c (implicitly_declare_fn): A constructor of a class with
2798 virtual base classes isn't constexpr (7.1.5p4).
2800 2014-02-05 Jan Hubicka <hubicka@ucw.cz
2802 * parser.c (synthesize_implicit_template_parm): Use grow_tree_vec.
2804 2014-02-05 Jakub Jelinek <jakub@redhat.com>
2807 * parser.c (cp_parser_omp_declare_reduction): Save and free
2810 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
2814 * tree.c (handle_init_priority_attribute): Call default_conversion on
2815 the attribute argument.
2817 2014-02-03 Paolo Carlini <paolo.carlini@oracle.com>
2820 * method.c (synthesized_method_walk): If vbases is non-null but
2821 is_empty is true, likewise don't worry about the virtual bases.
2823 2014-02-01 Paolo Carlini <paolo.carlini@oracle.com>
2826 * typeck2.c (process_init_constructor_record): Just skip unnamed
2829 2014-01-31 Jason Merrill <jason@redhat.com>
2832 * pt.c (mark_decl_instantiated): Call mark_needed.
2835 * decl2.c (handle_tls_init): Handle null init fn.
2838 * decl2.c (get_tls_init_fn): Copy DECL_EXTERNAL from the variable.
2840 2014-01-31 Paolo Carlini <paolo.carlini@oracle.com>
2843 * class.c (build_vfield_ref): Early return error_mark_node if
2844 TYPE_VFIELD (type) is null.
2845 (build_base_path): Check return value of build_vfield_ref.
2847 2014-01-31 Jason Merrill <jason@redhat.com>
2850 * call.c (convert_like_real) [ck_aggr]: Set TARGET_EXPR_LIST_INIT_P.
2851 [ck_list]: Check for error_mark_node.
2852 (build_aggr_conv): Set LOOKUP_NO_NARROWING and check_narrowing.
2855 * pt.c (fn_type_unification): Don't do DEDUCE_EXACT check
2856 during partial ordering.
2858 2014-01-31 Marek Polacek <polacek@redhat.com>
2861 * typeck.c (build_function_call_vec): Add dummy arg_loc parameter.
2863 2014-01-30 Jason Merrill <jason@redhat.com>
2866 * cp-tree.h (struct saved_scope): Add x_local_specializations.
2867 (local_specializations): New macro.
2868 * pt.c (local_specializations): Remove variable.
2870 2014-01-30 Richard Sandiford <rdsandiford@googlemail.com>
2873 * parser.c (make_string_pack): Use double_int::from_buffer.
2875 2014-01-30 Marek Polacek <polacek@redhat.com>
2878 * typeck.c (build_ptrmemfunc1): Call convert_and_check with
2880 * cvt.c (cp_convert_and_check): Call warnings_for_convert_and_check
2881 with input_location.
2882 * call.c (build_conditional_expr_1): Call unsafe_conversion_p with
2885 2014-01-30 Paolo Carlini <paolo.carlini@oracle.com>
2888 * typeck.c (lookup_destructor): Check dtor_type for error_mark_node.
2890 2014-01-30 Paolo Carlini <paolo.carlini@oracle.com>
2893 * pt.c (lookup_template_class_1): Check start_enum return value
2894 for error_mark_node.
2896 2014-01-30 Paolo Carlini <paolo.carlini@oracle.com>
2898 * decl.c (duplicate_decls, typename_hash, typename_compare):
2899 Use TYPE_IDENTIFIER.
2900 * error.c (dump_type): Likewise.
2901 * mangle.c (dump_substitution_candidates): Likewise.
2903 2014-01-30 Jason Merrill <jason@redhat.com>
2906 * decl2.c (attributes_naming_typedef_ok): New.
2907 * cp-tree.h: Declare it.
2908 * decl.c (grokdeclarator): Check it.
2909 * tree.c (no_linkage_check): Handle VECTOR_TYPE.
2911 2014-01-29 Jason Merrill <jason@redhat.com>
2914 * call.c (add_builtin_candidate): Catch dependent types.
2917 * pt.c (expand_template_argument_pack): Correct
2918 non_default_args_count calculation.
2921 * pt.c (unify_pack_expansion): Call expand_template_argument_pack.
2924 * friend.c (do_friend): Pass the TEMPLATE_DECL to add_friend if we
2925 have a friend template in a class template.
2926 * pt.c (tsubst_friend_function): Look through it.
2927 (push_template_decl_real): A friend member template is
2930 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
2933 * decl.c (get_dso_handle_node): Don't crash if dso_handle_node
2936 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
2939 * pt.c (instantiate_template_1): Check for error_mark_node the second
2942 2014-01-29 Jason Merrill <jason@redhat.com>
2945 * optimize.c (maybe_thunk_body): Build a RETURN_EXPR for
2946 cdtor_returns_this case.
2949 * decl.c (cxx_maybe_build_cleanup): Call mark_used.
2951 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
2954 * semantics.c (finish_omp_reduction_clause): Check type for
2957 2014-01-28 Jason Merrill <jason@redhat.com>
2960 * pt.c (tsubst_decl) [VAR_DECL]: Allow in unevaluated context.
2961 (tsubst_copy): Use it if lookup fails.
2964 * pt.c (tsubst_function_type): Make sure we keep the same function
2968 * semantics.c (build_anon_member_initialization): Stop walking
2969 when we run out of COMPONENT_REFs.
2972 * decl.c (lookup_and_check_tag): Ignore template parameters if
2973 scope == ts_current.
2974 * pt.c (check_template_shadow): Don't complain about the injected
2977 * decl.c (duplicate_decls): Tweak.
2980 * mangle.c (write_unqualified_name): Handle operator auto.
2982 2014-01-27 Jason Merrill <jason@redhat.com>
2986 * call.c (reference_binding): Pass LOOKUP_NO_TEMP_BIND for
2987 list-initialization. A conversion to rvalue ref that involves
2988 an lvalue-rvalue conversion is bad.
2989 (convert_like_real): Give helpful error message.
2992 * decl.c (duplicate_decls): Always use oldtype for TYPE_DECL.
2995 * pt.c (tsubst_copy_and_build) [TRAIT_EXPR]: Use tsubst for
2999 * pt.c (template_parm_to_arg): Call convert_from_reference.
3000 (tsubst_template_arg): Don't strip reference refs.
3003 * call.c (build_aggr_conv): Reject value-initialization of reference.
3007 * call.c (convert_like_real): Give helpful error about excess braces
3008 for ck_rvalue of scalar type.
3011 * call.c (reference_binding): Only elide braces if the single
3012 element is reference-related.
3015 * typeck.c (cp_build_modify_expr): Make the RHS an rvalue before
3019 * typeck.c (cp_truthvalue_conversion): Use explicit comparison for
3023 * decl.c (compute_array_index_type): Don't call
3024 maybe_constant_value for a non-integral expression.
3026 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3028 * call.c (magic_varargs_p): Replaced flag_enable_cilkplus with
3030 * cp-gimplify.c (cp_genericize): Likewise.
3031 * decl.c (grokfndecl): Likewise.
3032 * parser.c (cp_parser_postfix_expression): Likewise.
3033 (cp_parser_postfix_open_square_expression): Likewise.
3034 (cp_parser_direct_declarator): Likewise.
3035 (is_cilkplus_vector_p): Likewise.
3036 (cp_parser_omp_clause_name): Likewise.
3037 (cp_parser_omp_all_clauses): Likewise.
3038 * pt.c (apply_late_template_attributes): Likewise.
3039 * typeck.c (cp_build_array_ref): Likewise.
3040 (cp_build_compound_expr): Likewise.
3041 (check_return_expr): Likewise.
3043 2014-01-24 Jason Merrill <jason@redhat.com>
3046 * decl.c (grokdeclarator): Turn pedwarn about auto return type in
3051 * typeck2.c (process_init_constructor_array): Don't create
3054 2014-01-24 Jakub Jelinek <jakub@redhat.com>
3056 * typeck2.c (split_nonconstant_init_1): Fix num_split_elts
3057 handling for RANGE_ARRAY case.
3059 2014-01-24 Paolo Carlini <paolo.carlini@oracle.com>
3062 * name-lookup.c (push_using_directive): Use timevar_cond_start.
3064 2014-01-23 Marek Polacek <polacek@redhat.com>
3067 * typeck.c (cp_build_binary_op): Pass location to shorten_compare.
3069 2014-01-23 Marek Polacek <polacek@redhat.com>
3072 * typeck.c (pointer_diff): Give an error on arithmetic on pointer to
3075 2014-01-23 Jason Merrill <jason@redhat.com>
3078 * cp-tree.h (struct language_function): Add infinite_loop and
3080 (current_function_infinite_loop): New.
3081 * semantics.c (begin_maybe_infinite_loop, end_maybe_infinite_loop)
3082 (break_maybe_infinite_loop): New.
3083 (finish_while_stmt_cond, finish_while_stmt, begin_do_stmt)
3084 (finish_do_stmt, finish_for_cond, finish_for_stmt)
3085 (begin_range_for_stmt): Use them.
3086 * decl.c (finish_function): Don't warn about missing return
3087 if current_function_infinite_loop.
3088 * pt.c (instantiate_decl): Copy current_function_infinite_loop.
3089 * parser.c (cp_parser_jump_statement): Call break_maybe_infinite_loop.
3091 * call.c (build_op_delete_call): Use make_tree_vector and
3092 release_tree_vector.
3094 2014-01-23 Paolo Carlini <paolo.carlini@oracle.com>
3097 * parser.c (cp_parser_enum_specifier): Handle TYPENAME_TYPE as
3098 nested_name_specifier.
3100 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
3102 * parser.c (cp_parser_direct_declarator): When Cilk Plus is enabled
3103 see if there is an attribute after function decl. If so, then
3105 (cp_parser_late_return_type_opt): Handle parsing of Cilk Plus SIMD
3106 enabled function late parsing.
3107 (cp_parser_gnu_attribute_list): Parse all the tokens for the vector
3108 attribute for a SIMD-enabled function.
3109 (cp_parser_omp_all_clauses): Skip parsing to the end of pragma when
3110 the function is used by SIMD-enabled function (indicated by NULL
3111 pragma token). Added 3 new clauses: PRAGMA_CILK_CLAUSE_MASK,
3112 PRAGMA_CILK_CLAUSE_NOMASK and PRAGMA_CILK_CLAUSE_VECTORLENGTH
3113 (cp_parser_cilk_simd_vectorlength): Modified this function to handle
3114 vectorlength clause in SIMD-enabled function and #pragma SIMD's
3115 vectorlength clause. Added a new bool parameter to differentiate
3117 (cp_parser_cilk_simd_fn_vector_attrs): New function.
3118 (is_cilkplus_vector_p): Likewise.
3119 (cp_parser_late_parsing_elem_fn_info): Likewise.
3120 (cp_parser_omp_clause_name): Added a check for "mask", "nomask"
3121 and "vectorlength" clauses when Cilk Plus is enabled.
3122 (cp_parser_omp_clause_linear): Added a new parameter of type bool
3123 and emit a sorry message when step size is a parameter.
3124 * parser.h (cp_parser::cilk_simd_fn_info): New field.
3125 * decl.c (grokfndecl): Added flag_enable_cilkplus along with
3127 * pt.c (apply_late_template_attributes): Likewise.
3129 2014-01-23 Jakub Jelinek <jakub@redhat.com>
3132 * semantics.c (finish_omp_reduction_clause): Reject
3133 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
3135 2014-01-22 Ville Voutilainen <ville.voutilainen@gmail.com>
3138 * parser.c (cp_parser_class_head): Push the class before parsing
3139 the base-clause, pop after it.
3141 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3143 * decl2.c (cpp_check): Revert prototype change.
3145 2014-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3149 * init.c (build_value_init_noctor): Don't pass error_mark_node to
3152 2014-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3155 * init.c (build_value_init_noctor): Assert !TYPE_HAS_COMPLEX_DFLT
3156 only when errorcount == 0.
3158 2014-01-17 Marek Polacek <polacek@redhat.com>
3161 * cvt.c (ocp_convert): Don't segfault on non-existing
3162 ENUM_UNDERLYING_TYPE.
3164 2014-01-16 Jason Merrill <jason@redhat.com>
3167 * tree.c (bot_manip): Update the location of builtin_LINE and
3170 2014-01-14 Jason Merrill <jason@redhat.com>
3173 * typeck2.c (massage_init_elt): New.
3174 (process_init_constructor_record)
3175 (process_init_constructor_union): Use it.
3176 (process_init_constructor_array): Use it. Use RANGE_EXPR.
3177 (split_nonconstant_init_1): Handle it.
3178 * semantics.c (cxx_eval_vec_init_1): Use force_rvalue.
3180 2014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
3183 * parser.c (cp_parser_postfix_expression): Added a new if-statement
3184 and replaced an existing if-statement with else-if statement.
3185 Changed an existing error message wording to match the one from the C
3188 2014-01-08 Jason Merrill <jason@redhat.com>
3191 * class.c (abi_tag_data): Add tags field.
3192 (check_abi_tags): Initialize it.
3193 (find_abi_tags_r): Support collecting missing tags.
3194 (mark_type_abi_tags): Don't look at template args.
3195 (inherit_targ_abi_tags): New.
3196 (check_bases_and_members): Use it.
3197 * cp-tree.h (ABI_TAG_IMPLICIT): New.
3198 * mangle.c (write_abi_tags): Check it.
3200 2014-01-07 Jason Merrill <jason@redhat.com>
3203 * pt.c (num_innermost_template_parms): New.
3204 (get_underlying_template): Use it.
3207 * mangle.c (write_guarded_var_name): Handle null DECL_NAME.
3209 2014-01-07 Paolo Carlini <paolo.carlini@oracle.com>
3211 * semantics.c (trait_expr_value, [CPTK_IS_BASE_OF]): Implement
3212 the letter of 20.11.6 about Base and Derived naming the same
3213 class type modulo cv-qualifiers.
3215 2014-01-06 Adam Butcher <adam@jessamine.co.uk>
3218 * lambda.c (maybe_add_lambda_conv_op): Handle marking conversion
3219 function as unimplemented for generic lambdas with varargs.
3222 * parser.c (cp_parser_template_parameter): Early out with
3223 error_mark_node if parameter declaration was not parsed.
3226 * parser.c (cp_parser_lambda_expression): Save/reset/restore
3227 auto_is_implicit_function_template_parm_p around lambda body.
3230 * parser.c (cp_parser_init_declarator): Undo fully implicit
3231 template parameter list when declarator is not a function.
3233 2014-01-03 Marc Glisse <marc.glisse@inria.fr>
3236 * cvt.c (convert_to_void): Handle VEC_PERM_EXPR and VEC_COND_EXPR.
3238 2014-01-03 Tobias Burnus <burnus@net-b.de>
3241 * pt.c (tsubst_omp_for_iterator): Early return for error_mark_node.
3243 2014-01-03 Paolo Carlini <paolo.carlini@oracle.com>
3247 * parser.c (cp_parser_perform_range_for_lookup): Don't pass true
3248 as include_std to perform_koenig_lookup.
3249 (cp_parser_postfix_expression): Adjust.
3250 * pt.c (tsubst_copy_and_build): Likewise.
3251 * semantics.c (perform_koenig_lookup): Remove bool parameter.
3252 (omp_reduction_lookup): Adjust.
3253 * name-lookup.c (lookup_arg_dependent_1): Remove bool parameter.
3254 (lookup_arg_dependent): Likewise.
3255 (lookup_function_nonclass): Adjust.
3256 * name-lookup.h: Adjust declaration.
3257 * cp-tree.h: Likewise.
3259 2014-01-02 Marc Glisse <marc.glisse@inria.fr>
3262 * parser.c (cp_parser_userdef_numeric_literal): Mention
3263 -fext-numeric-literals in the message.
3265 2014-01-02 Marc Glisse <marc.glisse@inria.fr>
3268 * call.c (build_conditional_expr_1): Check the return value of
3271 2014-01-02 Marc Glisse <marc.glisse@inria.fr>
3273 * call.c (convert_like_real): Check complain.
3275 2014-01-02 Marc Glisse <marc.glisse@inria.fr>
3278 * typeck.c (build_x_vec_perm_expr): Handle non-dependent arguments
3281 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3283 Update copyright years
3285 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3287 * cp-array-notation.c, cp-cilkplus.c, vtable-class-hierarchy.c: Use
3288 the standard form for the copyright notice.
3290 Copyright (C) 2014 Free Software Foundation, Inc.
3292 Copying and distribution of this file, with or without modification,
3293 are permitted in any medium without royalty provided the copyright
3294 notice and this notice are preserved.