|
| 1 | +2026-04-23 Patrick Palka <ppalka@redhat.com> |
| 2 | + |
| 3 | + * module.cc (trees_out::core_vals) <case PTRMEM_CST>: |
| 4 | + Stream PTRMEM_CST_LOCATION. |
| 5 | + <case TRAIT_EXPR>: Stream TRAIT_EXPR_LOCATION. |
| 6 | + (trees_in::core_vals): As in trees_out::core_vals. |
| 7 | + |
| 8 | +2026-04-23 Patrick Palka <ppalka@redhat.com> |
| 9 | + |
| 10 | + PR c++/124981 |
| 11 | + * module.cc (trees_in::core_vals) <case PTRMEM_CST>: Use RTU |
| 12 | + instead of RT to stream PTRMEM_CST_MEMBER. |
| 13 | + |
| 14 | +2026-04-23 Marek Polacek <polacek@redhat.com> |
| 15 | + |
| 16 | + * cp-tree.h (lookup_annotation): Declare. |
| 17 | + * decl.cc (grokfndecl): Use lookup_annotation. |
| 18 | + (grokdeclarator): Likewise. |
| 19 | + * name-lookup.cc (push_local_extern_decl_alias): Likewise. |
| 20 | + * parser.cc (cp_parser_decomposition_declaration): Likewise. |
| 21 | + * reflect.cc (eval_annotations_of): Likewise. |
| 22 | + * tree.cc (lookup_annotation): New. |
| 23 | + |
| 24 | +2026-04-23 Marek Polacek <polacek@redhat.com> |
| 25 | + |
| 26 | + * cp-tree.h (enum linkage_kind): Add lk_module. |
| 27 | + * module.cc (check_module_decl_linkage): Use DECL_EXTERNAL_LINKAGE_P. |
| 28 | + * name-lookup.cc (check_can_export_using_decl): Don't check for |
| 29 | + attachment. |
| 30 | + * parser.cc (cp_parser_template_argument): Check that linkage isn't |
| 31 | + lk_module. |
| 32 | + * reflect.cc (eval_has_module_linkage): Check lk_module. |
| 33 | + (eval_has_external_linkage): Use DECL_EXTERNAL_LINKAGE_P. |
| 34 | + * tree.cc (decl_linkage): Return lk_module if appropriate. |
| 35 | + |
| 36 | +2026-04-23 Marek Polacek <polacek@redhat.com> |
| 37 | + |
| 38 | + DR 2229 |
| 39 | + PR c++/123935 |
| 40 | + * decl2.cc (grokbitfield): Add pedwarn for cv-qualified unnamed |
| 41 | + bit-fields. |
| 42 | + |
| 43 | +2026-04-23 Marek Polacek <polacek@redhat.com> |
| 44 | + |
| 45 | + PR c++/124989 |
| 46 | + * pt.cc (tsubst_splice_expr): Turn off access checking for the |
| 47 | + build_offset_ref call. |
| 48 | + |
| 49 | +2026-04-23 Ben Wu <soggysocks206@gmail.com> |
| 50 | + |
| 51 | + PR c++/118374 |
| 52 | + PR c++/41127 |
| 53 | + * parser.cc (cp_parser_enum_specifier): Parse definitely |
| 54 | + before cp_parser_type_specifier_seq. |
| 55 | + |
| 56 | +2026-04-23 Yuxuan Chen <i@yuxuan.ch> |
| 57 | + |
| 58 | + PR c++/107187 |
| 59 | + * cp-tree.h (has_trivial_abi_attribute): New function. |
| 60 | + (validate_trivial_abi_attribute): Declare. |
| 61 | + (classtype_has_non_deleted_copy_or_move_ctor): Declare. |
| 62 | + (cxx_clang_attribute_table): Declare. |
| 63 | + * tree.cc (handle_trivial_abi_attribute): New function. |
| 64 | + (handle_gnu_trivial_abi_attribute): New function. |
| 65 | + (classtype_has_trivial_abi): New function. |
| 66 | + (validate_trivial_abi_attribute): New function. |
| 67 | + (cxx_gnu_attributes): Add trivial_abi entry. |
| 68 | + (cxx_clang_attributes): New table for [[clang::trivial_abi]]. |
| 69 | + * class.cc (finish_struct_bits): Skip BLKmode for types with |
| 70 | + trivial_abi attribute. |
| 71 | + (classtype_has_non_deleted_copy_or_move_ctor): New function. |
| 72 | + (finish_struct_1): Call validate_trivial_abi_attribute before |
| 73 | + finish_struct_bits. |
| 74 | + * cp-objcp-common.h (cp_objcp_attribute_table): Register |
| 75 | + cxx_clang_attribute_table. |
| 76 | + * decl.cc (store_parm_decls): Register cleanups for trivial_abi |
| 77 | + parameters. |
| 78 | + |
| 79 | +2026-04-23 Jason Merrill <jason@redhat.com> |
| 80 | + |
| 81 | + PR c++/124973 |
| 82 | + * cp-gimplify.cc (cp_fold_r): Fix typo. |
| 83 | + |
| 84 | +2026-04-23 Marek Polacek <polacek@redhat.com> |
| 85 | + |
| 86 | + PR c++/124926 |
| 87 | + * pt.cc (tsubst_qualified_id): Rename name_lookup_p parameter to |
| 88 | + reflecting_p. Check !reflecting_p instead of name_lookup_p. Do |
| 89 | + not give the "instantiation yields a type" error when reflecting_p |
| 90 | + is true. |
| 91 | + (tsubst_expr) <case REFLECT_EXPR>: Adjust the call to |
| 92 | + tsubst_qualified_id. |
| 93 | + |
1 | 94 | 2026-04-22 Jason Merrill <jason@redhat.com> |
2 | 95 |
|
3 | 96 | PR c++/124973 |
|
0 commit comments