/cp
[official-gcc.git] / gcc / cp / ChangeLog
blob02b4fac907b7dd8b4464eb2b42918c6a45fc1ce6
1 2015-01-14  Paolo Carlini  <paolo.carlini@oracle.com>
3         PR c++/58671
4         * decl2.c (var_defined_without_dynamic_init): Handle gracefully
5         self-initialization.
7 2015-01-13  Jason Merrill  <jason@redhat.com>
9         PR c++/64356
10         PR libstdc++/58777
11         * constexpr.c (cxx_eval_binary_expression): Don't VERIFY_CONSTANT
12         pointer expressions.
13         (cxx_eval_increment_expression): Likewise.
15         PR c++/64514
16         * pt.c (coerce_template_parameter_pack): Return NULL for a
17         zero-length fixed parameter pack with a pack expansion arg.
19         PR c++/64520
20         * pt.c (unify): Don't try to deduce to std::initializer_list<T...>.
22 2015-01-12  Jason Merrill  <jason@redhat.com>
24         PR c++/64547
25         * constexpr.c (cxx_eval_call_expression): A call to a void
26         function doesn't need to return a value.
28 2015-01-09  Michael Collison  <michael.collison@linaro.org>
30         * call.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
31         input.h, alias.h, symtab.h, options.h, fold-const.h,
32         wide-int.h, and inchash.h due to flattening of tree.h.
33         * class.c: Ditto.
34         * constexpr.c: Ditto.
35         * cp-array-notation.c: Ditto.
36         * cp-gimplify.c: Ditto.
37         * cp-lang.c: Ditto.
38         * cp-objcp-common.c: Ditto.
39         * cvt.c: Ditto.
40         * decl2.c: Ditto.
41         * decl.c: Ditto.
42         * dump.c: Ditto.
43         * error.c: Ditto.
44         * except.c: Ditto.
45         * expr.c: Ditto.
46         * friend.c: Ditto.
47         * init.c: Ditto.
48         * lambda.c: Ditto.
49         * lex.c: Ditto.
50         * mangle.c: Ditto.
51         * name-lookup.c: Ditto.
52         * optimize.c: Ditto.
53         * parser.c: Ditto.
54         * pt.c: Ditto.
55         * ptree.c: Ditto.
56         * repo.c: Ditto.
57         * rtti.c: Ditto.
58         * search.c: Ditto.
59         * semantics.c: Ditto.
60         * tree.c: Ditto.
61         * typeck2.c: Ditto.
62         * typeck.c: Ditto.
64 2015-01-08  Jason Merrill  <jason@redhat.com>
66         * cp-gimplify.c (cp_genericize): Use do_ubsan_in_current_function.
67         * decl.c (compute_array_index_type): Likewise.
68         * init.c (build_vec_init): Likewise.
69         * typeck.c (cp_build_binary_op): Likewise.
71 2015-01-08  Jason Merrill  <jason@redhat.com>
73         * init.c (build_vec_init): Call ubsan_instrument_bounds to check
74         whether an initializer-list is too big for a VLA.
75         (throw_bad_array_length): Remove.
76         * cp-tree.h: Remove prototype.
78 2015-01-08  Paolo Carlini  <paolo.carlini@oracle.com>
80         PR c++/60753
81         * decl.c (grokfndecl): Add bool parameter.
82         (grokdeclarator): Adjust calls.
83         (start_decl): Don't set DECL_DELETED_FN here.
85 2015-01-06  Jason Merrill  <jason@redhat.com>
87         * parser.c (cp_parser_nested_name_specifier_opt): Diagnose invalid
88         template-ids.
90         PR c++/64455
91         * pt.c (type_dependent_expression_p): Handle variable templates.
92         * constexpr.c (potential_constant_expression_1): Use it.
94         PR c++/64487
95         * semantics.c (finish_offsetof): Handle templates here.
96         * parser.c (cp_parser_builtin_offsetof): Not here.
98         PR c++/64496
99         * semantics.c (process_outer_var_ref): Diagnose lambda in local
100         class NSDMI.
102 2015-01-06  Ville Voutilainen  <ville.voutilainen@gmail.com>
104         PR c++/64489
105         * class.c (check_field_decls): Make copy assignment operators
106         complex only in c++98 mode.
108 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
110         PR c++/31397
111         * class.c (check_for_override): Warn when a virtual function is an
112         override not marked override.
114 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
116         * class.c (warn_hidden): Use auto_vec<tree> instead of tree_list to
117         hold base_fndecls.
118         (get_basefndecls): Adjust.
120 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
122         Update copyright years.
124 2015-01-05  Marek Polacek  <polacek@redhat.com>
126         PR c/64423
127         * typeck.c (cp_build_array_ref): Pass loc down to
128         warn_array_subscript_with_type_char.
131 Copyright (C) 2015 Free Software Foundation, Inc.
133 Copying and distribution of this file, with or without modification,
134 are permitted in any medium without royalty provided the copyright
135 notice and this notice are preserved.