Bug 113800 - [C++26] P2308R1 - Template parameter initialization
Summary: [C++26] P2308R1 - Template parameter initialization
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 14.0
: P3 normal
Target Milestone: ---
Assignee: Marek Polacek
URL:
Keywords:
Depends on:
Blocks: c++26-core
  Show dependency treegraph
 
Reported: 2024-02-07 09:52 UTC by Jakub Jelinek
Modified: 2025-02-13 14:00 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Jelinek 2024-02-07 09:52:33 UTC
See <https://wg21.link/P2308R1>.
Comment 1 GCC Commits 2025-02-13 13:56:41 UTC
The trunk branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>:

https://gcc.gnu.org/g:84f19ecb01958fa791b9213dbd80331474fca9f0

commit r15-7507-g84f19ecb01958fa791b9213dbd80331474fca9f0
Author: Marek Polacek <polacek@redhat.com>
Date:   Wed Feb 12 13:33:37 2025 -0500

    c++: P2308, Template parameter initialization (tests) [PR113800]
    
    This proposal was implemented a long time ago by my r9-5271,
    but it took me this long to verify that it still works as per P2308.
    
    This patch adds assorted tests, both from clang and from [temp.arg.nontype].
    Fortunately I did not discover any issues in the compiler.
    
            PR c++/113800
            DR 2450
    
    gcc/testsuite/ChangeLog:
    
            * g++.dg/cpp26/pack-indexing15.C: New test.
            * g++.dg/cpp2a/nontype-class68.C: New test.
            * g++.dg/cpp2a/nontype-class69.C: New test.
            * g++.dg/cpp2a/nontype-class70.C: New test.
            * g++.dg/cpp2a/nontype-class71.C: New test.
            * g++.dg/cpp2a/nontype-class72.C: New test.
    
    Reviewed-by: Jason Merrill <jason@redhat.com>
Comment 2 Marek Polacek 2025-02-13 14:00:00 UTC
Done (since r9-5271, essentially).