* name-lookup.c (push_overloaded_decl_1): Refactor OVERLOAD creation.
[official-gcc.git] / gcc / cp / ChangeLog
bloba6a8e8b7ff473fe2bf14829193dc4f34faa8d5c1
1 2017-01-11  Nathan Sidwell  <nathan@acm.org>
3         * name-lookup.c (push_overloaded_decl_1): Refactor OVERLOAD creation.
5 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
7         PR c++/78341
8         * parser.c (cp_parser_std_attribute_spec): Remove over-eager
9         assertion.  Formatting fix.
11         PR c++/72813
12         * decl2.c (c_parse_final_cleanups): Set flag_syntax_only to 1 after
13         writing PCH file.
15 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
17         PR c++/77949
18         * parser.c (cp_parser_class_specifier_1): Only suggest inserting
19         a missing semicolon if we have a valid insertion location for
20         the fix-it hint.
22 2017-01-10  Jason Merrill  <jason@redhat.com>
24         FI 20, decomposition declaration with parenthesized initializer.
25         * parser.c (cp_parser_decomposition_declaration): Use
26         cp_parser_initializer.
28 2017-01-09  Jason Merrill  <jason@redhat.com>
30         Implement P0195R2, C++17 variadic using.
31         * parser.c (cp_parser_using_declaration): Handle ellipsis and comma.
32         * pt.c (tsubst_decl): Handle pack expansion in USING_DECL_SCOPE.
33         * error.c (dump_decl): Likewise.
35 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
37         PR translation/79019
38         PR translation/79020
39         * semantics.c (finish_omp_clauses): Add missing whitespace to
40         translatable strings.
41         * cp-cilkplus.c (cpp_validate_cilk_plus_loop_aux): Fix comment typo.
43 2017-01-07  Jason Merrill  <jason@redhat.com>
45         PR c++/78948 - instantiation from discarded statement
46         * parser.h (struct cp_parser): Remove in_discarded_stmt field.
47         * cp-tree.h (in_discarded_stmt): Declare it.
48         (struct saved_scope): Add discarded_stmt bitfield.
49         (in_discarded_stmt): New macro.
50         * decl2.c (mark_used): Check it.
51         * parser.c (cp_parser_selection_statement): Adjust.
52         (cp_parser_jump_statement): Adjust.
54 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
56         PR c++/78931
57         * decl.c (cp_finish_decomp): Remove probe variable, if tt is
58         REFERENCE_REF_P, set tt to its operand.
60         PR c++/78890
61         * class.c (check_field_decls): Diagnose REFERENCE_TYPE fields in
62         unions even for C++11 and later.
64 2017-01-05  Nathan Sidwell  <nathan@acm.org>
66         PR c++/78765
67         * pt.c (convert_nontype_argument): Don't try and see if integral
68         or enum expressions are constants prematurely.
70 2017-01-04  Marek Polacek  <polacek@redhat.com>
72         PR c++/64767
73         * typeck.c (cp_build_binary_op): Warn when a pointer is compared with
74         a zero character literal.
76 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
78         PR c++/78949
79         * typeck.c (cp_build_unary_op): Call mark_rvalue_use on arg if it has
80         vector type.
82         PR c++/78693
83         * parser.c (cp_parser_simple_declaration): Only complain about
84         inconsistent auto deduction if auto_result doesn't use auto.
86         * parser.c (cp_parser_simple_declaration): Diagnose function
87         declaration among more than one init-declarators with auto
88         specifier.
90         PR c++/71182
91         * parser.c (cp_lexer_previous_token): Use vec_safe_address in the
92         assertion, as lexer->buffer may be NULL.
94 2017-01-04  Marek Polacek  <polacek@redhat.com>
96         PR c++/77545
97         PR c++/77284
98         * constexpr.c (potential_constant_expression_1): Handle CLEANUP_STMT.
100 2017-01-04  Nathan Sidwell  <nathan@acm.org>
102         PR c++/66735
103         * cp-tree.h (DECLTYPE_FOR_REF_CAPTURE): New.
104         (lambda_capture_field_type): Update prototype.
105         * lambda.c (lambda_capture_field_type): Add is_reference parm.
106         Add referenceness here.
107         (add_capture): Adjust lambda_capture_field_type call, refactor
108         error checking.
109         * pt.c (tsubst): Adjust lambda_capture_field_type call.
111 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
113         Update copyright years.
115 Copyright (C) 2017 Free Software Foundation, Inc.
117 Copying and distribution of this file, with or without modification,
118 are permitted in any medium without royalty provided the copyright
119 notice and this notice are preserved.