Bug 120783 - [C++26] P3491R3 - define_static_{string,object,array}
Summary: [C++26] P3491R3 - define_static_{string,object,array}
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 16.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: c++26
Depends on:
Blocks: c++26-core
  Show dependency treegraph
 
Reported: 2025-06-23 15:25 UTC by Jakub Jelinek
Modified: 2026-01-15 18:50 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2025-06-23 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Jelinek 2025-06-23 15:25:39 UTC
See <https://wg21.link/P3491R3>.
Comment 1 Marek Polacek 2025-11-04 19:58:00 UTC
Implemented on the reflection branch.
Comment 3 Jakub Jelinek 2026-01-15 16:23:40 UTC
Implemented with
commit r16-6808-g4b0e94b394fa38cdc3431f3cfb333b85373bd948                                                                                                                             
Author: Marek Polacek <polacek@redhat.com>                                                                                                                                            
Date:   Wed Jan 14 11:37:39 2026 -0500                                                                                                                                                
                                                                                                                                                                                      
    c++: C++26 Reflection [PR120775]                                                                                                                                                  
                                                                                                                                                                                      
    This patch implements C++26 Reflection as specified by P2996R13, which allows                                                                                                     
    users to perform magic.  This patch also implements related papers:                                                                                                               
    Annotations for Reflection (P3394R4),                                                                                                                                             
    Splicing a base class subobject (P3293R3),                                                                                                                                        
    define_static_{string,object,array} (P3491R3),                                                                                                                                    
    Function Parameter Reflection (P3096R12).                                                                                                                                         
    (I already implemented consteval blocks back in July.)                                                                                                                            
    (We do not yet implement P3795.)                                                                                                                                                  
...