PR c++/78931
[official-gcc.git] / gcc / cp / ChangeLog
blob1d87845a882b33f84668b134c035f621ad5facfd
1 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
3         PR c++/78931
4         * decl.c (cp_finish_decomp): Remove probe variable, if tt is
5         REFERENCE_REF_P, set tt to its operand.
7         PR c++/78890
8         * class.c (check_field_decls): Diagnose REFERENCE_TYPE fields in
9         unions even for C++11 and later.
11 2017-01-05  Nathan Sidwell  <nathan@acm.org>
13         PR c++/78765
14         * pt.c (convert_nontype_argument): Don't try and see if integral
15         or enum expressions are constants prematurely.
17 2017-01-04  Marek Polacek  <polacek@redhat.com>
19         PR c++/64767
20         * typeck.c (cp_build_binary_op): Warn when a pointer is compared with
21         a zero character literal.
23 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
25         PR c++/78949
26         * typeck.c (cp_build_unary_op): Call mark_rvalue_use on arg if it has
27         vector type.
29         PR c++/78693
30         * parser.c (cp_parser_simple_declaration): Only complain about
31         inconsistent auto deduction if auto_result doesn't use auto.
33         * parser.c (cp_parser_simple_declaration): Diagnose function
34         declaration among more than one init-declarators with auto
35         specifier.
37         PR c++/71182
38         * parser.c (cp_lexer_previous_token): Use vec_safe_address in the
39         assertion, as lexer->buffer may be NULL.
41 2017-01-04  Marek Polacek  <polacek@redhat.com>
43         PR c++/77545
44         PR c++/77284
45         * constexpr.c (potential_constant_expression_1): Handle CLEANUP_STMT.
47 2017-01-04  Nathan Sidwell  <nathan@acm.org>
49         PR c++/66735
50         * cp-tree.h (DECLTYPE_FOR_REF_CAPTURE): New.
51         (lambda_capture_field_type): Update prototype.
52         * lambda.c (lambda_capture_field_type): Add is_reference parm.
53         Add referenceness here.
54         (add_capture): Adjust lambda_capture_field_type call, refactor
55         error checking.
56         * pt.c (tsubst): Adjust lambda_capture_field_type call.
58 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
60         Update copyright years.
62 Copyright (C) 2017 Free Software Foundation, Inc.
64 Copying and distribution of this file, with or without modification,
65 are permitted in any medium without royalty provided the copyright
66 notice and this notice are preserved.