PR c++/65642
[official-gcc.git] / gcc / cp / ChangeLog
blobca048aaaefbe13d8d64a792280ea8da4d39cc57b
1 2015-04-02  Marek Polacek  <polacek@redhat.com>
3         PR c++/65642
4         * constexpr.c (cxx_eval_pointer_plus_expression): Call
5         cxx_eval_constant_expression on the first operand.
7 2015-04-01  Jason Merrill  <jason@redhat.com>
9         PR c++/65625
10         * decl.c (make_typename_type): Handle seeing a variable template.
12 2015-04-01  Paolo Carlini  <paolo.carlini@oracle.com>
14         PR c++/56100
15         * pt.c (instantiating_current_function_p): New.
16         * name-lookup.c (pushdecl_maybe_friend_1): Use it.
17         * cp-tree.h (instantiating_current_function_p): Declare.
19 2015-04-01  Jason Merrill  <jason@redhat.com>
21         PR c++/65646
22         * decl.c (grokvardecl): Don't call check_explicit_specialization
23         for non-template members of a class template.
25 2015-04-01  Marek Polacek  <polacek@redhat.com>
27         PR c++/65554
28         * class.c (finish_struct): Require that the second field of a
29         user-defined initializer_list be of size type.
31 2015-03-31  Marek Polacek  <polacek@redhat.com>
33         PR c++/65390
34         * tree.c (build_cplus_array_type): Use dependent_type_p rather than
35         checking for constness.
37 2015-03-30  Marek Polacek  <polacek@redhat.com>
39         PR c++/65398
40         * constexpr.c (cxx_fold_indirect_ref): Don't perform the
41          *(&A[i] p+ j) => A[i + j] transformation here.
42         (cxx_eval_pointer_plus_expression): New function.
43         (cxx_eval_constant_expression): Use it here.
45 2015-03-27  Tobias Burnus  <burnus@net-b.de>
47         PR c/65586
48         * parser.c (cp_parser_omp_for, cp_parser_omp_parallel,
49         cp_parser_omp_distribute, cp_parser_omp_teams, cp_parser_omp_target,
50         cp_parser_omp_declare): Don't show error for skipped omp pragmas with
51         -fopenmp-simd.
53 2015-03-27  Marek Polacek  <polacek@redhat.com>
55         PR c++/65556
56         * semantics.c (finish_switch_cond): If the unlowered type is not an
57         enum, use the type of the condition.
59 2015-03-27  Jason Merrill  <jason@redhat.com>
61         PR c++/65509
62         * decl.c (make_rtl_for_nonlocal_decl): Don't defer static
63         constants.
65 2015-03-26  Mikhail Maltsev  <maltsevm@gmail.com>
67         PR c++/65154
68         * init.c (build_vec_init): Fix initializing aggregates
69         with empty init list.
71 2015-03-26  Jason Merrill  <jason@redhat.com>
73         PR c++/65525
74         * constexpr.c (potential_constant_expression_1): Handle MEM_REF.
76 2015-03-25  Marek Polacek  <polacek@redhat.com>
78         PR c++/65558
79         * name-lookup.c (handle_namespace_attrs): Ignore abi_tag attribute
80         on an anonymous namespace.
82 2015-03-25  Marek Polacek  <polacek@redhat.com>
84         PR c++/61670
85         * class.c (remove_zero_width_bit_fields): Check for null DECL_SIZE.
87 2015-03-24  Jason Merrill  <jason@redhat.com>
89         PR c++/65046
90         * cp-tree.h (NAMESPACE_IS_INLINE): Remove.
91         * parser.c (cp_parser_namespace_definition): Don't set it.
92         * name-lookup.c (handle_namespace_attrs): Check
93         DECL_NAMESPACE_ASSOCIATIONS instead.
95         PR c++/65498
96         * pt.c (get_mostly_instantiated_function_type): Just return the
97         type of the partially instantiated template in DECL_TI_TEMPLATE.
99 2015-03-20  Marek Polacek  <polacek@redhat.com>
101         PR c++/65398
102         * constexpr.c (cxx_fold_indirect_ref): Transform *(&A[i] p+ j) into
103         A[i + j].
105 2015-03-20  Marek Polacek  <polacek@redhat.com>
107         PR c++/65072
108         * typeck.c (lookup_anon_field): Make sure we're dealing with the main
109         variant.
111 2015-03-19  Jason Merrill  <jason@redhat.com>
113         PR c++/65046
114         Automatically propagate ABI tags to variables and functions
115         from their (return) type.
116         * class.c (check_tag): Handle variables and functions.
117         (mark_or_check_attr_tags): Split out from find_abi_tags_r.
118         (mark_or_check_tags): Likewise.
119         (mark_abi_tags): Use it.  Rename from mark_type_abi_tags.
120         (check_abi_tags): Add single argument overload for decls.
121         Handle inheriting tags for decls.
122         * mangle.c (write_mangled_name): Call it.
123         (mangle_return_type_p): Split out from write_encoding.
124         (unmangled_name_p): Split out from write_mangled_name.
125         (write_mangled_name): Ignore abi_tag on namespace.
126         * cp-tree.h (NAMESPACE_IS_INLINE): Replace NAMESPACE_ABI_TAG.
127         * parser.c (cp_parser_namespace_definition): Set it.
128         * name-lookup.c (handle_namespace_attrs): Use arguments. Warn
129         about abi_tag attribute on non-inline namespace.
130         * tree.c (check_abi_tag_args): Split out from handle_abi_tag_attribute.
131         (handle_abi_tag_attribute): Allow tags on variables.
133 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
135         * decl2.c (cplus_decl_attributes): Also add "omp declare target"
136         attribute for DECL_EXTERNAL VAR_DECLs.
138 2015-03-18  Paolo Carlini  <paolo.carlini@oracle.com>
140         PR c++/65340
141         * call.c (build_over_call): Pass the tsubst_flags_t argument to
142         mark_used.
143         * decl2.c (mark_used): Inline the require_deduced_type call and
144         guard the error call.
146 2015-03-16  Jason Merrill  <jason@redhat.com>
148         PR c++/65061
149         * parser.c (cp_parser_template_name): Call strip_using_decl.
151 2015-03-16  Marek Polacek  <polacek@redhat.com>
153         DR 1688
154         PR c++/65327
155         * decl.c (grokdeclarator): Allow volatile and constexpr together.
157 2015-03-12  Paolo Carlini  <paolo.carlini@oracle.com>
159         PR c++/65323
160         * decl.c (check_default_argument): Don't call
161         maybe_warn_zero_as_null_pointer_constant.
163 2015-03-11  Aldy Hernandez  <aldyh@redhat.com>
165         * cp-gimplify.c (simple_empty_class_p): New.
166         * cp-gimplify.c (cp_gimplify_expr): Handle RETURN_EXPR.  Abstract
167         the code for empty class copies into simple_empty_class_p, and
168         adapt it to handle COMPOUND_EXPRs.
170 2015-03-10  Paolo Carlini  <paolo.carlini@oracle.com>
172         PR c++/65370
173         * decl.c (duplicate_decls): Call check_redeclaration_no_default_args
174         only if the location of newdecl doesn't match the location of olddecl.
176 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
178         PR c++/65127
179         * parser.c (parsing_nsdmi): Don't return true if current_class_ptr
180         is not a PARM_DECL.
182 2015-03-10  Jason Merrill  <jason@redhat.com>
184         PR c++/65333
185         DR 1558
186         * pt.c (dependent_type_p_r): Check both class and alias template args.
188 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
190         PR c/65120
191         * parser.c (cp_parser_binary_expression): Check for tcc_comparison
192         before preparing arguments to warn_logical_not_parentheses.
193         Use maybe_constant_value on rhs.
195 2015-03-09  Jason Merrill  <jason@redhat.com>
197         PR c++/65339
198         * call.c: Don't call maybe_resolve_dummy when calling a constructor.
200 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
202         PR c/65120
203         * parser.c (cp_parser_binary_expression): Don't warn for
204         !!x == y or !b == y where b is bool.
206 2015-03-06  Aldy Hernandez  <aldyh@redhat.com>
208         * ptree.c (cxx_print_lambda_node): New.
209         (cxx_print_xnode): Handle LAMBDA_EXPR.
211 2015-03-03  Aldy Hernandez  <aldyh@redhat.com>
213         PR c++/65295
214         * constexpr.c (cxx_eval_constant_expression): Remove assert in
215         RESULT_DECL handling.
217 2015-02-26  Marek Polacek  <polacek@redhat.com>
219         PR c++/65202
220         * constexpr.c (cxx_eval_constant_expression): Don't evaluate
221         a RETURN_EXPR if its operand is null.
223 2015-02-25  Jason Merrill  <jason@redhat.com>
225         PR c++/65209
226         * decl2.c (constrain_visibility) [VISIBILITY_ANON]: Clear
227         DECL_COMDAT.
228         (constrain_visibility_for_template): Handle reference arguments.
230         PR debug/58315
231         * decl.c (start_preparsed_function): Use create_artificial_label
232         for cdtor_label.
234 2015-02-17  Paolo Carlini  <paolo.carlini@oracle.com>
235             Jakub Jelinek  <jakub@redhat.com>
237         PR c++/65075
238         * constexpr.c (check_constexpr_bind_expr_vars): Allow
239         implicit typedefs for lambda types.
241 2015-02-13  Paolo Carlini  <paolo.carlini@oracle.com>
243         PR c++/60894
244         * decl.c (lookup_and_check_tag): Use strip_using_decl.
246 2015-02-13  Jason Merrill  <jason@redhat.com>
248         PR c++/65054
249         * pt.c (template_args_equal): Look through conversions here.
250         * tree.c (cp_tree_equal): Not here.
252 2015-02-13  Paolo Carlini  <paolo.carlini@oracle.com>
254         PR c++/60211
255         * parser.c (cp_parser_pragma): Diagnose PRAGMA_IVDEP at
256         pragma_external context.
258 2015-02-13  Jason Merrill  <jason@redhat.com>
260         PR c++/65051
261         * call.c (reference_binding): Don't look for bad conversion
262         if TO is incomplete.
264 2015-02-13  Paolo Carlini  <paolo.carlini@oracle.com>
266         PR c++/64970
267         * decl.c (make_typename_type): Pass tsubst_flags_t argument
268         to lookup_template_class.
270 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
272         PR ipa/65034
273         * decl.c (start_preparsed_function): Use void_type_node instead
274         of NULL_TREE as LABEL_DECL type.
276 2015-02-12  Jason Merrill  <jason@redhat.com>
278         PR c++/64898
279         * mangle.c (write_mangled_name): Fix test for variable template
280         instantiation.
282         * decl.c (begin_destructor_body): Condition clobber on
283         -flifetime-dse.
285 2015-02-12 Andrea Azzarone <azzaronea@gmail.com>
287         PR c++/64959
288         * parser.c (lookup_literal_operator): Return all candidates.
289         (cp_parser_userdef_char_literal): Simplify error handling.
290         (cp_parser_userdef_numeric_literal):  Pass tf_warning_or_error.
291         (cp_parser_userdef_string_literal): Pass tf_warning_or_error.
292         Also give higher priority to standard string UDL operator.
294 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
296         PR debug/55541
297         * cp-tree.h (BLOCK_OUTER_CURLY_BRACE_P): Define.
298         * decl.c (poplevel): If functionbody, try not to create an extra
299         BLOCK for function body and use subblocks as that, if it is non-NULL
300         and doesn't have siblings.  Set BLOCK_OUTER_CURLY_BRACE_P flag.
301         (outer_curly_brace_block): Use BLOCK_OUTER_CURLY_BRACE_P flag.
303         PR sanitizer/64984
304         * except.c (check_noexcept_r): Return NULL for internal
305         calls.
307 2015-02-10  Jason Merrill  <jason@redhat.com>
309         PR c++/64994
310         * constexpr.c (cxx_eval_call_expression): Walk the clone list.
312 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
314         PR ipa/64982
315         * method.c (use_thunk): Do not check for stdarg thunks.
317 2015-02-06  Jason Merrill  <jason@redhat.com>
319         PR c++/64899
320         * init.c (build_vec_init): Handle default-initialized array with
321         constexpr default constructor.
323 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
325         PR c/64824
326         PR c/64868
327         * parser.c (cp_parser_omp_atomic): Handle RDIV_EXPR.
329 2015-02-03  Paolo Carlini  <paolo.carlini@oracle.com>
331         PR c++/64877
332         * typeck.c (cp_build_binary_op): Avoid spurious -Waddress warnings
333         for generated expressions.
335 2015-02-02  Ville Voutilainen  <ville.voutilainen@gmail.com>
337         PR c++/64901
338         * decl.c (duplicate_decls): Also duplicate DECL_FINAL_P and
339         DECL_OVERRIDE_P.
341 2015-02-02  Jason Merrill  <jason@redhat.com>
343         * tree.c (handle_abi_tag_attribute): Diagnose invalid arguments.
345 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
347         * class.c, except.c, parser.c, pt.c: All callers of fatal_error
348         changed to pass input_location as first argument.
350 2015-01-29  Jakub Jelinek  <jakub@redhat.com>
352         PR c++/64717
353         * cp-ubsan.c (cp_ubsan_instrument_vptr): Don't wrap vptr
354         into SAVE_EXPR.
356 2015-01-29  Jason Merrill  <jason@redhat.com>
358         PR c++/49508
359         * semantics.c (finish_return_stmt): Suppress -Wreturn-type on
360         erroneous return statement.
362         PR c++/64521
363         * repo.c (repo_emit_p): It's OK for a clone to be extern at this
364         point.
366 2015-01-27  Caroline Tice  <cmtice@google.com>
368         Committing VTV Cywin/Ming patch for Patrick Wollgast
369         * vtable-class-hierarchy.cc (vtv_generate_init_routine): Add
370         check for not TARGET_PECOFF at the VTV_PREINIT_PRIORITY checks.
372 2015-01-27  Jason Merrill  <jason@redhat.com>
374         PR c++/58597
375         * lambda.c (maybe_add_lambda_conv_op): Check cfun rather than
376         current_function_decl.
378         PR c++/63889
379         * pt.c (finish_template_variable): Move from semantics.c.
380         Handle multiple template arg levels.  Handle coercion here.
381         (lookup_template_variable): Not here.
383 2015-01-23  Jason Merrill  <jason@redhat.com>
385         PR c++/64314
386         PR c++/57510
387         * typeck2.c (split_nonconstant_init_1): Remove a sub-CONSTRUCTOR
388         that has been completely split out.
390         PR c++/64701
391         * constexpr.c (cxx_eval_constant_expression): Don't crash on C++
392         statement codes.
394         PR c++/64727
395         * constexpr.c (cxx_eval_constant_expression): Allow for lvalue use
396         of CONST_DECL.
398 2015-01-21  Jason Merrill  <jason@redhat.com>
400         PR c++/64603
401         * constexpr.c (cxx_eval_constant_expression): Only shortcut
402         constant CONSTRUCTORs.
404         PR c++/64647
405         * constexpr.c (ensure_literal_type_for_constexpr_object): Don't
406         give a hard error in a template instantiation.
408 2015-01-21  Richard Biener  <rguenther@suse.de>
410         PR middle-end/64313
411         * decl.c (duplicate_decls): Call set_builtin_decl_declared_p
412         for builtins the user declared correctly.
414 2015-01-16  Paolo Carlini  <paolo.carlini@oracle.com>
416         PR c++/58614
417         * pt.c (unify): When BRACE_ENCLOSED_INITIALIZER_P (arg), handle
418         TREE_TYPE (elt) == error_mark_node.
420 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
422         PR tree-optimization/62053
423         * tree.c (build_cplus_array_type): Layout type after variants are set.
425 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
427         * cp-gimplify.c (cp_genericize_r): Call
428         cp_ubsan_maybe_instrument_member_call for member calls.
429         (cp_ubsan_check_member_access_r): New function.
430         (cp_genericize_tree): Call cp_ubsan_instrument_member_accesses.
431         * cp-tree.h (cp_ubsan_maybe_instrument_member_call,
432         cp_ubsan_instrument_member_accesses,
433         cp_ubsan_maybe_instrument_downcast,
434         cp_ubsan_maybe_instrument_cast_to_vbase): New prototypes.
435         * cp-ubsan.c: New file.
436         * Make-lang.in (CXX_AND_OBJCXX_OBJS): Add cp/cp-ubsan.o.
437         * constexpr.c (cxx_eval_call_expression): Return void_node
438         for IFN_UBSAN_VPTR.
439         (potential_constant_expression_1): Return true for
440         UBSAN_NULL, UBSAN_BOUNDS and UBSAN_VPTR internal calls.
441         * typeck.c (build_class_member_access_expr): Provide locus
442         for COMPONENT_REFs.
443         (build_static_cast_1): Instrument downcasts.
444         * class.c (build_base_path): For -fsanitize=vptr and !fixed_type_p
445         add ubsan instrumentation for virtual_access.
446         * call.c: Include internal-fn.h.
447         (set_flags_from_callee): Handle internal calls.
449 2015-01-15  Momchil Velikov  <momchil.velikov@gmail.com>
451         PR c++/59366
452         * name-lookup.c (pushdecl_maybe_friend_1): Hide friend functions
453         and function templates, declared only in the class.
454         * decl.c (duplicate_decls): Reveal hidden friend functions or
455         function templates, if they are redeclared outside the class.
457 2015-01-15  Jason Merrill  <jason@redhat.com>
459         PR c++/64356
460         * constexpr.c (cxx_eval_binary_expression): Fix pasto.
462         PR c++/63283
463         * constexpr.c (potential_constant_expression_1): Handle reference
464         args in templates.
466 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
467             James Norris  <jnorris@codesourcery.com>
468             Cesar Philippidis  <cesar@codesourcery.com>
469             Ilmir Usmanov  <i.usmanov@samsung.com>
470             Jakub Jelinek  <jakub@redhat.com>
472         * parser.c: Include "gomp-constants.h".
473         (cp_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
474         omp_clause_map_kind.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
475         Use OMP_CLAUSE_SET_MAP_KIND.
476         (cp_parser_omp_construct, cp_parser_pragma): Handle
477         PRAGMA_OACC_CACHE, PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA,
478         PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_PARALLEL,
479         PRAGMA_OACC_LOOP, PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
480         (cp_parser_omp_clause_name): Handle "async", "copy", "copyout",
481         "create", "delete", "deviceptr", "host", "num_gangs",
482         "num_workers", "present", "present_or_copy", "pcopy",
483         "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
484         "present_or_create", "pcreate", "vector_length", "wait".
485         (OACC_DATA_CLAUSE_MASK, OACC_ENTER_DATA_CLAUSE_MASK)
486         (OACC_EXIT_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
487         (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
488         (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
489         (cp_parser_omp_var_list_no_open): Handle OMP_CLAUSE__CACHE_.
490         (cp_parser_oacc_data_clause, cp_parser_oacc_data_clause_deviceptr)
491         (cp_parser_oacc_clause_vector_length, cp_parser_oacc_wait_list)
492         (cp_parser_oacc_clause_wait, cp_parser_omp_clause_num_gangs)
493         (cp_parser_omp_clause_num_workers, cp_parser_oacc_clause_async)
494         (cp_parser_oacc_all_clauses, cp_parser_oacc_cache)
495         (cp_parser_oacc_data, cp_parser_oacc_enter_exit_data)
496         (cp_parser_oacc_kernels, cp_parser_oacc_loop)
497         (cp_parser_oacc_parallel, cp_parser_oacc_update)
498         (cp_parser_oacc_wait): New functions.
499         * cp-tree.h (finish_oacc_data, finish_oacc_kernels)
500         (finish_oacc_parallel): New prototypes.
501         * semantics.c: Include "gomp-constants.h".
502         (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR.  Use
503         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
504         OMP_CLAUSE_SET_MAP_KIND.
505         (finish_omp_clauses): Handle OMP_CLAUSE_ASYNC,
506         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_WAIT, OMP_CLAUSE__CACHE_.
507         Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
508         (finish_oacc_data, finish_oacc_kernels, finish_oacc_parallel): New
509         functions.
511 2015-01-14  Paolo Carlini  <paolo.carlini@oracle.com>
513         PR c++/58671
514         * decl2.c (var_defined_without_dynamic_init): Handle gracefully
515         self-initialization.
517 2015-01-13  Jason Merrill  <jason@redhat.com>
519         PR c++/64356
520         PR libstdc++/58777
521         * constexpr.c (cxx_eval_binary_expression): Don't VERIFY_CONSTANT
522         pointer expressions.
523         (cxx_eval_increment_expression): Likewise.
525         PR c++/64514
526         * pt.c (coerce_template_parameter_pack): Return NULL for a
527         zero-length fixed parameter pack with a pack expansion arg.
529         PR c++/64520
530         * pt.c (unify): Don't try to deduce to std::initializer_list<T...>.
532 2015-01-12  Jason Merrill  <jason@redhat.com>
534         PR c++/64547
535         * constexpr.c (cxx_eval_call_expression): A call to a void
536         function doesn't need to return a value.
538 2015-01-09  Michael Collison  <michael.collison@linaro.org>
540         * call.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
541         input.h, alias.h, symtab.h, options.h, fold-const.h,
542         wide-int.h, and inchash.h due to flattening of tree.h.
543         * class.c: Ditto.
544         * constexpr.c: Ditto.
545         * cp-array-notation.c: Ditto.
546         * cp-gimplify.c: Ditto.
547         * cp-lang.c: Ditto.
548         * cp-objcp-common.c: Ditto.
549         * cvt.c: Ditto.
550         * decl2.c: Ditto.
551         * decl.c: Ditto.
552         * dump.c: Ditto.
553         * error.c: Ditto.
554         * except.c: Ditto.
555         * expr.c: Ditto.
556         * friend.c: Ditto.
557         * init.c: Ditto.
558         * lambda.c: Ditto.
559         * lex.c: Ditto.
560         * mangle.c: Ditto.
561         * name-lookup.c: Ditto.
562         * optimize.c: Ditto.
563         * parser.c: Ditto.
564         * pt.c: Ditto.
565         * ptree.c: Ditto.
566         * repo.c: Ditto.
567         * rtti.c: Ditto.
568         * search.c: Ditto.
569         * semantics.c: Ditto.
570         * tree.c: Ditto.
571         * typeck2.c: Ditto.
572         * typeck.c: Ditto.
574 2015-01-08  Jason Merrill  <jason@redhat.com>
576         * cp-gimplify.c (cp_genericize): Use do_ubsan_in_current_function.
577         * decl.c (compute_array_index_type): Likewise.
578         * init.c (build_vec_init): Likewise.
579         * typeck.c (cp_build_binary_op): Likewise.
581 2015-01-08  Jason Merrill  <jason@redhat.com>
583         * init.c (build_vec_init): Call ubsan_instrument_bounds to check
584         whether an initializer-list is too big for a VLA.
585         (throw_bad_array_length): Remove.
586         * cp-tree.h: Remove prototype.
588 2015-01-08  Paolo Carlini  <paolo.carlini@oracle.com>
590         PR c++/60753
591         * decl.c (grokfndecl): Add bool parameter.
592         (grokdeclarator): Adjust calls.
593         (start_decl): Don't set DECL_DELETED_FN here.
595 2015-01-06  Jason Merrill  <jason@redhat.com>
597         * parser.c (cp_parser_nested_name_specifier_opt): Diagnose invalid
598         template-ids.
600         PR c++/64455
601         * pt.c (type_dependent_expression_p): Handle variable templates.
602         * constexpr.c (potential_constant_expression_1): Use it.
604         PR c++/64487
605         * semantics.c (finish_offsetof): Handle templates here.
606         * parser.c (cp_parser_builtin_offsetof): Not here.
608         PR c++/64496
609         * semantics.c (process_outer_var_ref): Diagnose lambda in local
610         class NSDMI.
612 2015-01-06  Ville Voutilainen  <ville.voutilainen@gmail.com>
614         PR c++/64489
615         * class.c (check_field_decls): Make copy assignment operators
616         complex only in c++98 mode.
618 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
620         PR c++/31397
621         * class.c (check_for_override): Warn when a virtual function is an
622         override not marked override.
624 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
626         * class.c (warn_hidden): Use auto_vec<tree> instead of tree_list to
627         hold base_fndecls.
628         (get_basefndecls): Adjust.
630 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
632         Update copyright years.
634 2015-01-05  Marek Polacek  <polacek@redhat.com>
636         PR c/64423
637         * typeck.c (cp_build_array_ref): Pass loc down to
638         warn_array_subscript_with_type_char.
641 Copyright (C) 2015 Free Software Foundation, Inc.
643 Copying and distribution of this file, with or without modification,
644 are permitted in any medium without royalty provided the copyright
645 notice and this notice are preserved.