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