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