]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/cp/ChangeLog
FI 20, decomposition declaration with parenthesized initializer.
[thirdparty/gcc.git] / gcc / cp / ChangeLog
1 2017-01-10 Jason Merrill <jason@redhat.com>
2
3 FI 20, decomposition declaration with parenthesized initializer.
4 * parser.c (cp_parser_decomposition_declaration): Use
5 cp_parser_initializer.
6
7 2017-01-09 Jason Merrill <jason@redhat.com>
8
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.
13
14 2017-01-09 Jakub Jelinek <jakub@redhat.com>
15
16 PR translation/79019
17 PR translation/79020
18 * semantics.c (finish_omp_clauses): Add missing whitespace to
19 translatable strings.
20 * cp-cilkplus.c (cpp_validate_cilk_plus_loop_aux): Fix comment typo.
21
22 2017-01-07 Jason Merrill <jason@redhat.com>
23
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.
32
33 2017-01-05 Jakub Jelinek <jakub@redhat.com>
34
35 PR c++/78931
36 * decl.c (cp_finish_decomp): Remove probe variable, if tt is
37 REFERENCE_REF_P, set tt to its operand.
38
39 PR c++/78890
40 * class.c (check_field_decls): Diagnose REFERENCE_TYPE fields in
41 unions even for C++11 and later.
42
43 2017-01-05 Nathan Sidwell <nathan@acm.org>
44
45 PR c++/78765
46 * pt.c (convert_nontype_argument): Don't try and see if integral
47 or enum expressions are constants prematurely.
48
49 2017-01-04 Marek Polacek <polacek@redhat.com>
50
51 PR c++/64767
52 * typeck.c (cp_build_binary_op): Warn when a pointer is compared with
53 a zero character literal.
54
55 2017-01-04 Jakub Jelinek <jakub@redhat.com>
56
57 PR c++/78949
58 * typeck.c (cp_build_unary_op): Call mark_rvalue_use on arg if it has
59 vector type.
60
61 PR c++/78693
62 * parser.c (cp_parser_simple_declaration): Only complain about
63 inconsistent auto deduction if auto_result doesn't use auto.
64
65 * parser.c (cp_parser_simple_declaration): Diagnose function
66 declaration among more than one init-declarators with auto
67 specifier.
68
69 PR c++/71182
70 * parser.c (cp_lexer_previous_token): Use vec_safe_address in the
71 assertion, as lexer->buffer may be NULL.
72
73 2017-01-04 Marek Polacek <polacek@redhat.com>
74
75 PR c++/77545
76 PR c++/77284
77 * constexpr.c (potential_constant_expression_1): Handle CLEANUP_STMT.
78
79 2017-01-04 Nathan Sidwell <nathan@acm.org>
80
81 PR c++/66735
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
87 error checking.
88 * pt.c (tsubst): Adjust lambda_capture_field_type call.
89
90 2017-01-01 Jakub Jelinek <jakub@redhat.com>
91
92 Update copyright years.
93 \f
94 Copyright (C) 2017 Free Software Foundation, Inc.
95
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.