diff options
author | Jason Merrill <jason@redhat.com> | 2024-06-12 21:43:45 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2024-06-13 11:06:14 -0400 |
commit | 57113e3db168e19c46ca52ad084790d462eea603 (patch) | |
tree | 7b28a4a3aefb63f3e6bd816366e6b2e946ddbdca /gcc | |
parent | d387ecb2b2f44f33fd6a7c5ec7eadaf6dd70efc9 (diff) | |
download | gcc-57113e3db168e19c46ca52ad084790d462eea603.zip gcc-57113e3db168e19c46ca52ad084790d462eea603.tar.gz gcc-57113e3db168e19c46ca52ad084790d462eea603.tar.bz2 |
c++: adjust comment
Adjusting the comment I added in r15-1223 to clarify that this is a
workaround for a bug elsewhere.
gcc/cp/ChangeLog:
* module.cc (depset::hash::add_binding_entity): Adjust comment.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/module.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc index 72e876c..ea7ad0c 100644 --- a/gcc/cp/module.cc +++ b/gcc/cp/module.cc @@ -13254,9 +13254,10 @@ depset::hash::add_binding_entity (tree decl, WMB_Flags flags, void *data_) if (data->hash->add_namespace_entities (decl, data->partitions)) { /* It contains an exported thing, so it is exported. - We used to assert DECL_MODULE_PURVIEW_P, but that fails for a - namespace like std::__exception_ptr which is never opened in - module purview; the exporting using finds another using. */ + + FIXME we have to set DECL_MODULE_PURVIEW_P instead of asserting + that it is already set because of the c++/114683 issue with + exported using-declarations; see do_nonmember_using_decl. */ DECL_MODULE_PURVIEW_P (decl) = true; DECL_MODULE_EXPORT_P (decl) = true; } |