1 2017-01-10 Jason Merrill <jason@redhat.com>
3 FI 20, decomposition declaration with parenthesized initializer.
4 * parser.c (cp_parser_decomposition_declaration): Use
7 2017-01-09 Jason Merrill <jason@redhat.com>
9 Implement P0195R2, C++17 variadic using.
10 * parser.c (cp_parser_using_declaration): Handle ellipsis and comma.
11 * pt.c (tsubst_decl): Handle pack expansion in USING_DECL_SCOPE.
12 * error.c (dump_decl): Likewise.
14 2017-01-09 Jakub Jelinek <jakub@redhat.com>
18 * semantics.c (finish_omp_clauses): Add missing whitespace to
20 * cp-cilkplus.c (cpp_validate_cilk_plus_loop_aux): Fix comment typo.
22 2017-01-07 Jason Merrill <jason@redhat.com>
24 PR c++/78948 - instantiation from discarded statement
25 * parser.h (struct cp_parser): Remove in_discarded_stmt field.
26 * cp-tree.h (in_discarded_stmt): Declare it.
27 (struct saved_scope): Add discarded_stmt bitfield.
28 (in_discarded_stmt): New macro.
29 * decl2.c (mark_used): Check it.
30 * parser.c (cp_parser_selection_statement): Adjust.
31 (cp_parser_jump_statement): Adjust.
33 2017-01-05 Jakub Jelinek <jakub@redhat.com>
36 * decl.c (cp_finish_decomp): Remove probe variable, if tt is
37 REFERENCE_REF_P, set tt to its operand.
40 * class.c (check_field_decls): Diagnose REFERENCE_TYPE fields in
41 unions even for C++11 and later.
43 2017-01-05 Nathan Sidwell <nathan@acm.org>
46 * pt.c (convert_nontype_argument): Don't try and see if integral
47 or enum expressions are constants prematurely.
49 2017-01-04 Marek Polacek <polacek@redhat.com>
52 * typeck.c (cp_build_binary_op): Warn when a pointer is compared with
53 a zero character literal.
55 2017-01-04 Jakub Jelinek <jakub@redhat.com>
58 * typeck.c (cp_build_unary_op): Call mark_rvalue_use on arg if it has
62 * parser.c (cp_parser_simple_declaration): Only complain about
63 inconsistent auto deduction if auto_result doesn't use auto.
65 * parser.c (cp_parser_simple_declaration): Diagnose function
66 declaration among more than one init-declarators with auto
70 * parser.c (cp_lexer_previous_token): Use vec_safe_address in the
71 assertion, as lexer->buffer may be NULL.
73 2017-01-04 Marek Polacek <polacek@redhat.com>
77 * constexpr.c (potential_constant_expression_1): Handle CLEANUP_STMT.
79 2017-01-04 Nathan Sidwell <nathan@acm.org>
82 * cp-tree.h (DECLTYPE_FOR_REF_CAPTURE): New.
83 (lambda_capture_field_type): Update prototype.
84 * lambda.c (lambda_capture_field_type): Add is_reference parm.
85 Add referenceness here.
86 (add_capture): Adjust lambda_capture_field_type call, refactor
88 * pt.c (tsubst): Adjust lambda_capture_field_type call.
90 2017-01-01 Jakub Jelinek <jakub@redhat.com>
92 Update copyright years.
94 Copyright (C) 2017 Free Software Foundation, Inc.
96 Copying and distribution of this file, with or without modification,
97 are permitted in any medium without royalty provided the copyright
98 notice and this notice are preserved.