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