diff options
author | Jason Merrill <jason@redhat.com> | 2025-01-10 18:00:20 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2025-01-11 01:27:11 -0500 |
commit | 664bd76a23def2d458bb3c531486b4c220f29c11 (patch) | |
tree | 6af8c5fbf2c942ea92e8e7e4379e4c55495c7896 /libphobos/src/std/algorithm/comparison.d | |
parent | fdabd93cde4aae38d6a67fe0927eca8cea1b22b9 (diff) | |
download | gcc-664bd76a23def2d458bb3c531486b4c220f29c11.zip gcc-664bd76a23def2d458bb3c531486b4c220f29c11.tar.gz gcc-664bd76a23def2d458bb3c531486b4c220f29c11.tar.bz2 |
c++: modules and function attributes
30_threads/stop_token/stop_source/109339.cc was failing because we weren't
representing attribute access on the METHOD_TYPE for _Stop_state_ref.
The modules code expected attributes to appear on tt_variant_type and not
on tt_derived_type, but that's backwards since build_type_attribute_variant
gives a type with attributes its own TYPE_MAIN_VARIANT.
gcc/cp/ChangeLog:
* module.cc (trees_out::type_node): Write attributes for
tt_derived_type, not tt_variant_type.
(trees_in::tree_node): Likewise for reading.
gcc/testsuite/ChangeLog:
* g++.dg/modules/attrib-2_a.C: New test.
* g++.dg/modules/attrib-2_b.C: New test.
Diffstat (limited to 'libphobos/src/std/algorithm/comparison.d')
0 files changed, 0 insertions, 0 deletions