PR c++/65727
[official-gcc.git] / gcc / cp / ChangeLog
blob3534fdb8b2d8456487dde7eafcb11e584a33cf1b
1 2015-04-15  Jason Merrill  <jason@redhat.com>
2             Marek Polacek  <polacek@redhat.com>
4         PR c++/65727
5         * lambda.c (lambda_expr_this_capture): In unevaluated context go
6         through the normal loop, just don't capture.
7         (maybe_resolve_dummy): Handle null return.
9 2015-04-15  Paolo Carlini  <paolo.carlini@oracle.com>
11         * call.c (enforce_access): Emit error + inform.
13 2015-04-15  Marek Polacek  <polacek@redhat.com>
15         * constexpr.c (use_new_call): Remove #define.
16         (lookup_parameter_binding): Remove function.
17         (cxx_bind_parameters_in_call): Remove unused code.
18         (cxx_eval_call_expression): Likewise.
19         (cxx_eval_constant_expression): Likewise.
21 2015-04-14  Mikhail Maltsev  <maltsevm@gmail.com>
23         * tree.c (replace_placeholders_t): Remove unused type.
24         (replace_placeholders): Remove unused pset.
26 2015-04-14  Jason Merrill  <jason@redhat.com>
28         * pt.c (lookup_template_class_1): Use coerce_innermost_template_parms.
30         PR c++/65695
31         * cvt.c (cp_fold_convert): Avoid wrapping PTRMEM_CST in NOP_EXPR.
33         PR c++/65721
34         * name-lookup.c (do_class_using_decl): Complain about specifying
35         the current class even if there are dependent bases.
37 2015-04-14  David Krauss  <david_work@me.com>
39         PR c++/59766
40         * decl.c (grokdeclarator): Do not flag friends with deduced return.
42 2015-04-14  Momchil Velikov  <momchil.velikov@gmail.com>
43             Jason Merrill  <jason@redhat.com>
45         PR c++/60994
46         * parser.c (cp_parser_class_name): Add enum_ok parameter.
47         (cp_parser_qualifying_entity): Use it instead of cp_parser_type_name.
48         (cp_parser_diagnose_invalid_type_name): Don't assume a template is
49         a class template.
51 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
53         PR c++/65736
54         * constexpr.c (cxx_eval_pointer_plus_expression): Don't fold for VLAs,
55         don't fold if op01 isn't divisible by TYPE_SIZE_UNIT.  Convert
56         the expression to the original type at the end.
58 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
60         PR c++/65690
61         * tree.c (cp_build_qualified_type_real): Copy TYPE_ALIGN and
62         TYPE_USER_ALIGN.
64         PR c++/65690
65         * tree.c (build_cplus_array_type): Layout type before variants are
66         set, but copy over TYPE_SIZE and TYPE_SIZE_UNIT from the main
67         variant.
69 2015-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
71         PR c++/64085
72         * lambda.c (add_capture): Use dependent_type_p for capture by
73         reference too.
75 2015-04-02  Marek Polacek  <polacek@redhat.com>
77         PR c++/65642
78         * constexpr.c (cxx_eval_pointer_plus_expression): Call
79         cxx_eval_constant_expression on the first operand.
81 2015-04-01  Jason Merrill  <jason@redhat.com>
83         PR c++/65625
84         * decl.c (make_typename_type): Handle seeing a variable template.
86 2015-04-01  Paolo Carlini  <paolo.carlini@oracle.com>
88         PR c++/56100
89         * pt.c (instantiating_current_function_p): New.
90         * name-lookup.c (pushdecl_maybe_friend_1): Use it.
91         * cp-tree.h (instantiating_current_function_p): Declare.
93 2015-04-01  Jason Merrill  <jason@redhat.com>
95         PR c++/65646
96         * decl.c (grokvardecl): Don't call check_explicit_specialization
97         for non-template members of a class template.
99 2015-04-01  Marek Polacek  <polacek@redhat.com>
101         PR c++/65554
102         * class.c (finish_struct): Require that the second field of a
103         user-defined initializer_list be of size type.
105 2015-03-31  Marek Polacek  <polacek@redhat.com>
107         PR c++/65390
108         * tree.c (build_cplus_array_type): Use dependent_type_p rather than
109         checking for constness.
111 2015-03-30  Marek Polacek  <polacek@redhat.com>
113         PR c++/65398
114         * constexpr.c (cxx_fold_indirect_ref): Don't perform the
115          *(&A[i] p+ j) => A[i + j] transformation here.
116         (cxx_eval_pointer_plus_expression): New function.
117         (cxx_eval_constant_expression): Use it here.
119 2015-03-27  Tobias Burnus  <burnus@net-b.de>
121         PR c/65586
122         * parser.c (cp_parser_omp_for, cp_parser_omp_parallel,
123         cp_parser_omp_distribute, cp_parser_omp_teams, cp_parser_omp_target,
124         cp_parser_omp_declare): Don't show error for skipped omp pragmas with
125         -fopenmp-simd.
127 2015-03-27  Marek Polacek  <polacek@redhat.com>
129         PR c++/65556
130         * semantics.c (finish_switch_cond): If the unlowered type is not an
131         enum, use the type of the condition.
133 2015-03-27  Jason Merrill  <jason@redhat.com>
135         PR c++/65509
136         * decl.c (make_rtl_for_nonlocal_decl): Don't defer static
137         constants.
139 2015-03-26  Mikhail Maltsev  <maltsevm@gmail.com>
141         PR c++/65154
142         * init.c (build_vec_init): Fix initializing aggregates
143         with empty init list.
145 2015-03-26  Jason Merrill  <jason@redhat.com>
147         PR c++/65525
148         * constexpr.c (potential_constant_expression_1): Handle MEM_REF.
150 2015-03-25  Marek Polacek  <polacek@redhat.com>
152         PR c++/65558
153         * name-lookup.c (handle_namespace_attrs): Ignore abi_tag attribute
154         on an anonymous namespace.
156 2015-03-25  Marek Polacek  <polacek@redhat.com>
158         PR c++/61670
159         * class.c (remove_zero_width_bit_fields): Check for null DECL_SIZE.
161 2015-03-24  Jason Merrill  <jason@redhat.com>
163         PR c++/65046
164         * cp-tree.h (NAMESPACE_IS_INLINE): Remove.
165         * parser.c (cp_parser_namespace_definition): Don't set it.
166         * name-lookup.c (handle_namespace_attrs): Check
167         DECL_NAMESPACE_ASSOCIATIONS instead.
169         PR c++/65498
170         * pt.c (get_mostly_instantiated_function_type): Just return the
171         type of the partially instantiated template in DECL_TI_TEMPLATE.
173 2015-03-20  Marek Polacek  <polacek@redhat.com>
175         PR c++/65398
176         * constexpr.c (cxx_fold_indirect_ref): Transform *(&A[i] p+ j) into
177         A[i + j].
179 2015-03-20  Marek Polacek  <polacek@redhat.com>
181         PR c++/65072
182         * typeck.c (lookup_anon_field): Make sure we're dealing with the main
183         variant.
185 2015-03-19  Jason Merrill  <jason@redhat.com>
187         PR c++/65046
188         Automatically propagate ABI tags to variables and functions
189         from their (return) type.
190         * class.c (check_tag): Handle variables and functions.
191         (mark_or_check_attr_tags): Split out from find_abi_tags_r.
192         (mark_or_check_tags): Likewise.
193         (mark_abi_tags): Use it.  Rename from mark_type_abi_tags.
194         (check_abi_tags): Add single argument overload for decls.
195         Handle inheriting tags for decls.
196         * mangle.c (write_mangled_name): Call it.
197         (mangle_return_type_p): Split out from write_encoding.
198         (unmangled_name_p): Split out from write_mangled_name.
199         (write_mangled_name): Ignore abi_tag on namespace.
200         * cp-tree.h (NAMESPACE_IS_INLINE): Replace NAMESPACE_ABI_TAG.
201         * parser.c (cp_parser_namespace_definition): Set it.
202         * name-lookup.c (handle_namespace_attrs): Use arguments. Warn
203         about abi_tag attribute on non-inline namespace.
204         * tree.c (check_abi_tag_args): Split out from handle_abi_tag_attribute.
205         (handle_abi_tag_attribute): Allow tags on variables.
207 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
209         * decl2.c (cplus_decl_attributes): Also add "omp declare target"
210         attribute for DECL_EXTERNAL VAR_DECLs.
212 2015-03-18  Paolo Carlini  <paolo.carlini@oracle.com>
214         PR c++/65340
215         * call.c (build_over_call): Pass the tsubst_flags_t argument to
216         mark_used.
217         * decl2.c (mark_used): Inline the require_deduced_type call and
218         guard the error call.
220 2015-03-16  Jason Merrill  <jason@redhat.com>
222         PR c++/65061
223         * parser.c (cp_parser_template_name): Call strip_using_decl.
225 2015-03-16  Marek Polacek  <polacek@redhat.com>
227         DR 1688
228         PR c++/65327
229         * decl.c (grokdeclarator): Allow volatile and constexpr together.
231 2015-03-12  Paolo Carlini  <paolo.carlini@oracle.com>
233         PR c++/65323
234         * decl.c (check_default_argument): Don't call
235         maybe_warn_zero_as_null_pointer_constant.
237 2015-03-11  Aldy Hernandez  <aldyh@redhat.com>
239         * cp-gimplify.c (simple_empty_class_p): New.
240         * cp-gimplify.c (cp_gimplify_expr): Handle RETURN_EXPR.  Abstract
241         the code for empty class copies into simple_empty_class_p, and
242         adapt it to handle COMPOUND_EXPRs.
244 2015-03-10  Paolo Carlini  <paolo.carlini@oracle.com>
246         PR c++/65370
247         * decl.c (duplicate_decls): Call check_redeclaration_no_default_args
248         only if the location of newdecl doesn't match the location of olddecl.
250 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
252         PR c++/65127
253         * parser.c (parsing_nsdmi): Don't return true if current_class_ptr
254         is not a PARM_DECL.
256 2015-03-10  Jason Merrill  <jason@redhat.com>
258         PR c++/65333
259         DR 1558
260         * pt.c (dependent_type_p_r): Check both class and alias template args.
262 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
264         PR c/65120
265         * parser.c (cp_parser_binary_expression): Check for tcc_comparison
266         before preparing arguments to warn_logical_not_parentheses.
267         Use maybe_constant_value on rhs.
269 2015-03-09  Jason Merrill  <jason@redhat.com>
271         PR c++/65339
272         * call.c: Don't call maybe_resolve_dummy when calling a constructor.
274 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
276         PR c/65120
277         * parser.c (cp_parser_binary_expression): Don't warn for
278         !!x == y or !b == y where b is bool.
280 2015-03-06  Aldy Hernandez  <aldyh@redhat.com>
282         * ptree.c (cxx_print_lambda_node): New.
283         (cxx_print_xnode): Handle LAMBDA_EXPR.
285 2015-03-03  Aldy Hernandez  <aldyh@redhat.com>
287         PR c++/65295
288         * constexpr.c (cxx_eval_constant_expression): Remove assert in
289         RESULT_DECL handling.
291 2015-02-26  Marek Polacek  <polacek@redhat.com>
293         PR c++/65202
294         * constexpr.c (cxx_eval_constant_expression): Don't evaluate
295         a RETURN_EXPR if its operand is null.
297 2015-02-25  Jason Merrill  <jason@redhat.com>
299         PR c++/65209
300         * decl2.c (constrain_visibility) [VISIBILITY_ANON]: Clear
301         DECL_COMDAT.
302         (constrain_visibility_for_template): Handle reference arguments.
304         PR debug/58315
305         * decl.c (start_preparsed_function): Use create_artificial_label
306         for cdtor_label.
308 2015-02-17  Paolo Carlini  <paolo.carlini@oracle.com>
309             Jakub Jelinek  <jakub@redhat.com>
311         PR c++/65075
312         * constexpr.c (check_constexpr_bind_expr_vars): Allow
313         implicit typedefs for lambda types.
315 2015-02-13  Paolo Carlini  <paolo.carlini@oracle.com>
317         PR c++/60894
318         * decl.c (lookup_and_check_tag): Use strip_using_decl.
320 2015-02-13  Jason Merrill  <jason@redhat.com>
322         PR c++/65054
323         * pt.c (template_args_equal): Look through conversions here.
324         * tree.c (cp_tree_equal): Not here.
326 2015-02-13  Paolo Carlini  <paolo.carlini@oracle.com>
328         PR c++/60211
329         * parser.c (cp_parser_pragma): Diagnose PRAGMA_IVDEP at
330         pragma_external context.
332 2015-02-13  Jason Merrill  <jason@redhat.com>
334         PR c++/65051
335         * call.c (reference_binding): Don't look for bad conversion
336         if TO is incomplete.
338 2015-02-13  Paolo Carlini  <paolo.carlini@oracle.com>
340         PR c++/64970
341         * decl.c (make_typename_type): Pass tsubst_flags_t argument
342         to lookup_template_class.
344 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
346         PR ipa/65034
347         * decl.c (start_preparsed_function): Use void_type_node instead
348         of NULL_TREE as LABEL_DECL type.
350 2015-02-12  Jason Merrill  <jason@redhat.com>
352         PR c++/64898
353         * mangle.c (write_mangled_name): Fix test for variable template
354         instantiation.
356         * decl.c (begin_destructor_body): Condition clobber on
357         -flifetime-dse.
359 2015-02-12 Andrea Azzarone <azzaronea@gmail.com>
361         PR c++/64959
362         * parser.c (lookup_literal_operator): Return all candidates.
363         (cp_parser_userdef_char_literal): Simplify error handling.
364         (cp_parser_userdef_numeric_literal):  Pass tf_warning_or_error.
365         (cp_parser_userdef_string_literal): Pass tf_warning_or_error.
366         Also give higher priority to standard string UDL operator.
368 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
370         PR debug/55541
371         * cp-tree.h (BLOCK_OUTER_CURLY_BRACE_P): Define.
372         * decl.c (poplevel): If functionbody, try not to create an extra
373         BLOCK for function body and use subblocks as that, if it is non-NULL
374         and doesn't have siblings.  Set BLOCK_OUTER_CURLY_BRACE_P flag.
375         (outer_curly_brace_block): Use BLOCK_OUTER_CURLY_BRACE_P flag.
377         PR sanitizer/64984
378         * except.c (check_noexcept_r): Return NULL for internal
379         calls.
381 2015-02-10  Jason Merrill  <jason@redhat.com>
383         PR c++/64994
384         * constexpr.c (cxx_eval_call_expression): Walk the clone list.
386 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
388         PR ipa/64982
389         * method.c (use_thunk): Do not check for stdarg thunks.
391 2015-02-06  Jason Merrill  <jason@redhat.com>
393         PR c++/64899
394         * init.c (build_vec_init): Handle default-initialized array with
395         constexpr default constructor.
397 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
399         PR c/64824
400         PR c/64868
401         * parser.c (cp_parser_omp_atomic): Handle RDIV_EXPR.
403 2015-02-03  Paolo Carlini  <paolo.carlini@oracle.com>
405         PR c++/64877
406         * typeck.c (cp_build_binary_op): Avoid spurious -Waddress warnings
407         for generated expressions.
409 2015-02-02  Ville Voutilainen  <ville.voutilainen@gmail.com>
411         PR c++/64901
412         * decl.c (duplicate_decls): Also duplicate DECL_FINAL_P and
413         DECL_OVERRIDE_P.
415 2015-02-02  Jason Merrill  <jason@redhat.com>
417         * tree.c (handle_abi_tag_attribute): Diagnose invalid arguments.
419 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
421         * class.c, except.c, parser.c, pt.c: All callers of fatal_error
422         changed to pass input_location as first argument.
424 2015-01-29  Jakub Jelinek  <jakub@redhat.com>
426         PR c++/64717
427         * cp-ubsan.c (cp_ubsan_instrument_vptr): Don't wrap vptr
428         into SAVE_EXPR.
430 2015-01-29  Jason Merrill  <jason@redhat.com>
432         PR c++/49508
433         * semantics.c (finish_return_stmt): Suppress -Wreturn-type on
434         erroneous return statement.
436         PR c++/64521
437         * repo.c (repo_emit_p): It's OK for a clone to be extern at this
438         point.
440 2015-01-27  Caroline Tice  <cmtice@google.com>
442         Committing VTV Cywin/Ming patch for Patrick Wollgast
443         * vtable-class-hierarchy.cc (vtv_generate_init_routine): Add
444         check for not TARGET_PECOFF at the VTV_PREINIT_PRIORITY checks.
446 2015-01-27  Jason Merrill  <jason@redhat.com>
448         PR c++/58597
449         * lambda.c (maybe_add_lambda_conv_op): Check cfun rather than
450         current_function_decl.
452         PR c++/63889
453         * pt.c (finish_template_variable): Move from semantics.c.
454         Handle multiple template arg levels.  Handle coercion here.
455         (lookup_template_variable): Not here.
457 2015-01-23  Jason Merrill  <jason@redhat.com>
459         PR c++/64314
460         PR c++/57510
461         * typeck2.c (split_nonconstant_init_1): Remove a sub-CONSTRUCTOR
462         that has been completely split out.
464         PR c++/64701
465         * constexpr.c (cxx_eval_constant_expression): Don't crash on C++
466         statement codes.
468         PR c++/64727
469         * constexpr.c (cxx_eval_constant_expression): Allow for lvalue use
470         of CONST_DECL.
472 2015-01-21  Jason Merrill  <jason@redhat.com>
474         PR c++/64603
475         * constexpr.c (cxx_eval_constant_expression): Only shortcut
476         constant CONSTRUCTORs.
478         PR c++/64647
479         * constexpr.c (ensure_literal_type_for_constexpr_object): Don't
480         give a hard error in a template instantiation.
482 2015-01-21  Richard Biener  <rguenther@suse.de>
484         PR middle-end/64313
485         * decl.c (duplicate_decls): Call set_builtin_decl_declared_p
486         for builtins the user declared correctly.
488 2015-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
490         PR c++/58614
491         * pt.c (unify): When BRACE_ENCLOSED_INITIALIZER_P (arg), handle
492         TREE_TYPE (elt) == error_mark_node.
494 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
496         PR tree-optimization/62053
497         * tree.c (build_cplus_array_type): Layout type after variants are set.
499 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
501         * cp-gimplify.c (cp_genericize_r): Call
502         cp_ubsan_maybe_instrument_member_call for member calls.
503         (cp_ubsan_check_member_access_r): New function.
504         (cp_genericize_tree): Call cp_ubsan_instrument_member_accesses.
505         * cp-tree.h (cp_ubsan_maybe_instrument_member_call,
506         cp_ubsan_instrument_member_accesses,
507         cp_ubsan_maybe_instrument_downcast,
508         cp_ubsan_maybe_instrument_cast_to_vbase): New prototypes.
509         * cp-ubsan.c: New file.
510         * Make-lang.in (CXX_AND_OBJCXX_OBJS): Add cp/cp-ubsan.o.
511         * constexpr.c (cxx_eval_call_expression): Return void_node
512         for IFN_UBSAN_VPTR.
513         (potential_constant_expression_1): Return true for
514         UBSAN_NULL, UBSAN_BOUNDS and UBSAN_VPTR internal calls.
515         * typeck.c (build_class_member_access_expr): Provide locus
516         for COMPONENT_REFs.
517         (build_static_cast_1): Instrument downcasts.
518         * class.c (build_base_path): For -fsanitize=vptr and !fixed_type_p
519         add ubsan instrumentation for virtual_access.
520         * call.c: Include internal-fn.h.
521         (set_flags_from_callee): Handle internal calls.
523 2015-01-15  Momchil Velikov  <momchil.velikov@gmail.com>
525         PR c++/59366
526         * name-lookup.c (pushdecl_maybe_friend_1): Hide friend functions
527         and function templates, declared only in the class.
528         * decl.c (duplicate_decls): Reveal hidden friend functions or
529         function templates, if they are redeclared outside the class.
531 2015-01-15  Jason Merrill  <jason@redhat.com>
533         PR c++/64356
534         * constexpr.c (cxx_eval_binary_expression): Fix pasto.
536         PR c++/63283
537         * constexpr.c (potential_constant_expression_1): Handle reference
538         args in templates.
540 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
541             James Norris  <jnorris@codesourcery.com>
542             Cesar Philippidis  <cesar@codesourcery.com>
543             Ilmir Usmanov  <i.usmanov@samsung.com>
544             Jakub Jelinek  <jakub@redhat.com>
546         * parser.c: Include "gomp-constants.h".
547         (cp_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
548         omp_clause_map_kind.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
549         Use OMP_CLAUSE_SET_MAP_KIND.
550         (cp_parser_omp_construct, cp_parser_pragma): Handle
551         PRAGMA_OACC_CACHE, PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA,
552         PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_PARALLEL,
553         PRAGMA_OACC_LOOP, PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
554         (cp_parser_omp_clause_name): Handle "async", "copy", "copyout",
555         "create", "delete", "deviceptr", "host", "num_gangs",
556         "num_workers", "present", "present_or_copy", "pcopy",
557         "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
558         "present_or_create", "pcreate", "vector_length", "wait".
559         (OACC_DATA_CLAUSE_MASK, OACC_ENTER_DATA_CLAUSE_MASK)
560         (OACC_EXIT_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
561         (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
562         (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
563         (cp_parser_omp_var_list_no_open): Handle OMP_CLAUSE__CACHE_.
564         (cp_parser_oacc_data_clause, cp_parser_oacc_data_clause_deviceptr)
565         (cp_parser_oacc_clause_vector_length, cp_parser_oacc_wait_list)
566         (cp_parser_oacc_clause_wait, cp_parser_omp_clause_num_gangs)
567         (cp_parser_omp_clause_num_workers, cp_parser_oacc_clause_async)
568         (cp_parser_oacc_all_clauses, cp_parser_oacc_cache)
569         (cp_parser_oacc_data, cp_parser_oacc_enter_exit_data)
570         (cp_parser_oacc_kernels, cp_parser_oacc_loop)
571         (cp_parser_oacc_parallel, cp_parser_oacc_update)
572         (cp_parser_oacc_wait): New functions.
573         * cp-tree.h (finish_oacc_data, finish_oacc_kernels)
574         (finish_oacc_parallel): New prototypes.
575         * semantics.c: Include "gomp-constants.h".
576         (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR.  Use
577         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
578         OMP_CLAUSE_SET_MAP_KIND.
579         (finish_omp_clauses): Handle OMP_CLAUSE_ASYNC,
580         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_WAIT, OMP_CLAUSE__CACHE_.
581         Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
582         (finish_oacc_data, finish_oacc_kernels, finish_oacc_parallel): New
583         functions.
585 2015-01-14  Paolo Carlini  <paolo.carlini@oracle.com>
587         PR c++/58671
588         * decl2.c (var_defined_without_dynamic_init): Handle gracefully
589         self-initialization.
591 2015-01-13  Jason Merrill  <jason@redhat.com>
593         PR c++/64356
594         PR libstdc++/58777
595         * constexpr.c (cxx_eval_binary_expression): Don't VERIFY_CONSTANT
596         pointer expressions.
597         (cxx_eval_increment_expression): Likewise.
599         PR c++/64514
600         * pt.c (coerce_template_parameter_pack): Return NULL for a
601         zero-length fixed parameter pack with a pack expansion arg.
603         PR c++/64520
604         * pt.c (unify): Don't try to deduce to std::initializer_list<T...>.
606 2015-01-12  Jason Merrill  <jason@redhat.com>
608         PR c++/64547
609         * constexpr.c (cxx_eval_call_expression): A call to a void
610         function doesn't need to return a value.
612 2015-01-09  Michael Collison  <michael.collison@linaro.org>
614         * call.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
615         input.h, alias.h, symtab.h, options.h, fold-const.h,
616         wide-int.h, and inchash.h due to flattening of tree.h.
617         * class.c: Ditto.
618         * constexpr.c: Ditto.
619         * cp-array-notation.c: Ditto.
620         * cp-gimplify.c: Ditto.
621         * cp-lang.c: Ditto.
622         * cp-objcp-common.c: Ditto.
623         * cvt.c: Ditto.
624         * decl2.c: Ditto.
625         * decl.c: Ditto.
626         * dump.c: Ditto.
627         * error.c: Ditto.
628         * except.c: Ditto.
629         * expr.c: Ditto.
630         * friend.c: Ditto.
631         * init.c: Ditto.
632         * lambda.c: Ditto.
633         * lex.c: Ditto.
634         * mangle.c: Ditto.
635         * name-lookup.c: Ditto.
636         * optimize.c: Ditto.
637         * parser.c: Ditto.
638         * pt.c: Ditto.
639         * ptree.c: Ditto.
640         * repo.c: Ditto.
641         * rtti.c: Ditto.
642         * search.c: Ditto.
643         * semantics.c: Ditto.
644         * tree.c: Ditto.
645         * typeck2.c: Ditto.
646         * typeck.c: Ditto.
648 2015-01-08  Jason Merrill  <jason@redhat.com>
650         * cp-gimplify.c (cp_genericize): Use do_ubsan_in_current_function.
651         * decl.c (compute_array_index_type): Likewise.
652         * init.c (build_vec_init): Likewise.
653         * typeck.c (cp_build_binary_op): Likewise.
655 2015-01-08  Jason Merrill  <jason@redhat.com>
657         * init.c (build_vec_init): Call ubsan_instrument_bounds to check
658         whether an initializer-list is too big for a VLA.
659         (throw_bad_array_length): Remove.
660         * cp-tree.h: Remove prototype.
662 2015-01-08  Paolo Carlini  <paolo.carlini@oracle.com>
664         PR c++/60753
665         * decl.c (grokfndecl): Add bool parameter.
666         (grokdeclarator): Adjust calls.
667         (start_decl): Don't set DECL_DELETED_FN here.
669 2015-01-06  Jason Merrill  <jason@redhat.com>
671         * parser.c (cp_parser_nested_name_specifier_opt): Diagnose invalid
672         template-ids.
674         PR c++/64455
675         * pt.c (type_dependent_expression_p): Handle variable templates.
676         * constexpr.c (potential_constant_expression_1): Use it.
678         PR c++/64487
679         * semantics.c (finish_offsetof): Handle templates here.
680         * parser.c (cp_parser_builtin_offsetof): Not here.
682         PR c++/64496
683         * semantics.c (process_outer_var_ref): Diagnose lambda in local
684         class NSDMI.
686 2015-01-06  Ville Voutilainen  <ville.voutilainen@gmail.com>
688         PR c++/64489
689         * class.c (check_field_decls): Make copy assignment operators
690         complex only in c++98 mode.
692 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
694         PR c++/31397
695         * class.c (check_for_override): Warn when a virtual function is an
696         override not marked override.
698 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
700         * class.c (warn_hidden): Use auto_vec<tree> instead of tree_list to
701         hold base_fndecls.
702         (get_basefndecls): Adjust.
704 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
706         Update copyright years.
708 2015-01-05  Marek Polacek  <polacek@redhat.com>
710         PR c/64423
711         * typeck.c (cp_build_array_ref): Pass loc down to
712         warn_array_subscript_with_type_char.
715 Copyright (C) 2015 Free Software Foundation, Inc.
717 Copying and distribution of this file, with or without modification,
718 are permitted in any medium without royalty provided the copyright
719 notice and this notice are preserved.