[Bug c++/113800] [C++26] P2308R1 - Template parameter initialization
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 13 13:56:41 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113800
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
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>
More information about the Gcc-bugs
mailing list