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