]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/cp/ChangeLog
re PR c++/77812 (incorrectly rejects valid C++ code that uses enum in template instan...
[thirdparty/gcc.git] / gcc / cp / ChangeLog
1 2017-01-11 Nathan Sidwell <nathan@acm.org>
2
3 PR c++/77812
4 * name-lookup.c (set_namespace_binding_1): An overload of 1 decl
5 is a new overload.
6
7 2017-01-11 Nathan Sidwell <nathan@acm.org>
8
9 * name-lookup.c (push_overloaded_decl_1): Refactor OVERLOAD creation.
10
11 2017-01-11 Jakub Jelinek <jakub@redhat.com>
12
13 PR c++/78341
14 * parser.c (cp_parser_std_attribute_spec): Remove over-eager
15 assertion. Formatting fix.
16
17 PR c++/72813
18 * decl2.c (c_parse_final_cleanups): Set flag_syntax_only to 1 after
19 writing PCH file.
20
21 2017-01-10 David Malcolm <dmalcolm@redhat.com>
22
23 PR c++/77949
24 * parser.c (cp_parser_class_specifier_1): Only suggest inserting
25 a missing semicolon if we have a valid insertion location for
26 the fix-it hint.
27
28 2017-01-10 Jason Merrill <jason@redhat.com>
29
30 FI 20, decomposition declaration with parenthesized initializer.
31 * parser.c (cp_parser_decomposition_declaration): Use
32 cp_parser_initializer.
33
34 2017-01-09 Jason Merrill <jason@redhat.com>
35
36 Implement P0195R2, C++17 variadic using.
37 * parser.c (cp_parser_using_declaration): Handle ellipsis and comma.
38 * pt.c (tsubst_decl): Handle pack expansion in USING_DECL_SCOPE.
39 * error.c (dump_decl): Likewise.
40
41 2017-01-09 Jakub Jelinek <jakub@redhat.com>
42
43 PR translation/79019
44 PR translation/79020
45 * semantics.c (finish_omp_clauses): Add missing whitespace to
46 translatable strings.
47 * cp-cilkplus.c (cpp_validate_cilk_plus_loop_aux): Fix comment typo.
48
49 2017-01-07 Jason Merrill <jason@redhat.com>
50
51 PR c++/78948 - instantiation from discarded statement
52 * parser.h (struct cp_parser): Remove in_discarded_stmt field.
53 * cp-tree.h (in_discarded_stmt): Declare it.
54 (struct saved_scope): Add discarded_stmt bitfield.
55 (in_discarded_stmt): New macro.
56 * decl2.c (mark_used): Check it.
57 * parser.c (cp_parser_selection_statement): Adjust.
58 (cp_parser_jump_statement): Adjust.
59
60 2017-01-05 Jakub Jelinek <jakub@redhat.com>
61
62 PR c++/78931
63 * decl.c (cp_finish_decomp): Remove probe variable, if tt is
64 REFERENCE_REF_P, set tt to its operand.
65
66 PR c++/78890
67 * class.c (check_field_decls): Diagnose REFERENCE_TYPE fields in
68 unions even for C++11 and later.
69
70 2017-01-05 Nathan Sidwell <nathan@acm.org>
71
72 PR c++/78765
73 * pt.c (convert_nontype_argument): Don't try and see if integral
74 or enum expressions are constants prematurely.
75
76 2017-01-04 Marek Polacek <polacek@redhat.com>
77
78 PR c++/64767
79 * typeck.c (cp_build_binary_op): Warn when a pointer is compared with
80 a zero character literal.
81
82 2017-01-04 Jakub Jelinek <jakub@redhat.com>
83
84 PR c++/78949
85 * typeck.c (cp_build_unary_op): Call mark_rvalue_use on arg if it has
86 vector type.
87
88 PR c++/78693
89 * parser.c (cp_parser_simple_declaration): Only complain about
90 inconsistent auto deduction if auto_result doesn't use auto.
91
92 * parser.c (cp_parser_simple_declaration): Diagnose function
93 declaration among more than one init-declarators with auto
94 specifier.
95
96 PR c++/71182
97 * parser.c (cp_lexer_previous_token): Use vec_safe_address in the
98 assertion, as lexer->buffer may be NULL.
99
100 2017-01-04 Marek Polacek <polacek@redhat.com>
101
102 PR c++/77545
103 PR c++/77284
104 * constexpr.c (potential_constant_expression_1): Handle CLEANUP_STMT.
105
106 2017-01-04 Nathan Sidwell <nathan@acm.org>
107
108 PR c++/66735
109 * cp-tree.h (DECLTYPE_FOR_REF_CAPTURE): New.
110 (lambda_capture_field_type): Update prototype.
111 * lambda.c (lambda_capture_field_type): Add is_reference parm.
112 Add referenceness here.
113 (add_capture): Adjust lambda_capture_field_type call, refactor
114 error checking.
115 * pt.c (tsubst): Adjust lambda_capture_field_type call.
116
117 2017-01-01 Jakub Jelinek <jakub@redhat.com>
118
119 Update copyright years.
120 \f
121 Copyright (C) 2017 Free Software Foundation, Inc.
122
123 Copying and distribution of this file, with or without modification,
124 are permitted in any medium without royalty provided the copyright
125 notice and this notice are preserved.