Bug 113335 - [C++23] Implement LWG3617 function/packaged_task deduction guides and deducing this
Summary: [C++23] Implement LWG3617 function/packaged_task deduction guides and deducin...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: unknown
: P3 normal
Target Milestone: 14.0
Assignee: Jonathan Wakely
URL:
Keywords:
Depends on: 102609
Blocks: c++23-lib
  Show dependency treegraph
 
Reported: 2024-01-11 15:36 UTC by Jonathan Wakely
Modified: 2024-02-02 14:43 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2024-02-01 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Wakely 2024-01-11 15:36:25 UTC
Now that 'deducing this' is supported, we need these changes:
 
https://cplusplus.github.io/LWG/issue3617
Comment 1 GCC Commits 2024-02-02 14:42:59 UTC
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:

https://gcc.gnu.org/g:6f75149488b74ae696788b8761d6fcfa754a0af7

commit r14-8752-g6f75149488b74ae696788b8761d6fcfa754a0af7
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri Feb 2 10:03:12 2024 +0000

    libstdc++: Make std::function deduction guide support explicit object functions [PR113335]
    
    This makes the deduction guides for std::function and std::packaged_task
    work for explicit object member functions, i.e. "deducing this", as per
    LWG 3617.
    
    libstdc++-v3/ChangeLog:
    
            PR libstdc++/113335
            * include/bits/std_function.h (__function_guide_helper): Add
            partial specialization for explicit object member functions, as
            per LWG 3617.
            * testsuite/20_util/function/cons/deduction_c++23.cc: Check
            explicit object member functions.
            * testsuite/30_threads/packaged_task/cons/deduction_c++23.cc:
            Likewise.
Comment 2 Jonathan Wakely 2024-02-02 14:43:29 UTC
Done for 14