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