[Bug c++/116952] [13/14/15/16 Regression] Error on lambda NTTP argument to type constraint in template parameter list of generic lambda

2026-01-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116952

--- Comment #9 from GCC Commits  ---
The releases/gcc-15 branch has been updated by Jason Merrill
:

https://gcc.gnu.org/g:66fe4ac0fa6efaa7213d6c6afd9e7ea77688e072

commit r15-10658-g66fe4ac0fa6efaa7213d6c6afd9e7ea77688e072
Author: Eczbek 
Date:   Fri Jan 9 15:02:53 2026 +0800

c++: Allow lambda expressions in template type parameters [PR116952]

PR c++/116952

gcc/cp/ChangeLog:

* parser.cc (cp_parser_lambda_expression): Revert
r11-8166-ge1666ebd9ad31d change prohibiting lambda in non-type
parameter.

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/lambda-uneval14.C: Revise incorrect test.
* g++.dg/cpp2a/lambda-uneval29.C: New test.

Co-authored-by: Jason Merrill 
(cherry picked from commit ef4cd115ef67736b2af06fb7b47410961b73e7d6)

[Bug c++/116952] [13/14/15/16 Regression] Error on lambda NTTP argument to type constraint in template parameter list of generic lambda

2025-11-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116952

--- Comment #8 from GCC Commits  ---
The trunk branch has been updated by Jason Merrill :

https://gcc.gnu.org/g:ef4cd115ef67736b2af06fb7b47410961b73e7d6

commit r16-5726-gef4cd115ef67736b2af06fb7b47410961b73e7d6
Author: Eczbek 
Date:   Tue Nov 25 00:26:50 2025 -0500

c++: Allow lambda expressions in template type parameters [PR116952]

PR c++/116952

gcc/cp/ChangeLog:

* parser.cc (cp_parser_lambda_expression): Revert
r11-8166-ge1666ebd9ad31d change prohibiting lambda in non-type
parameter.

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/lambda-uneval14.C: Revise incorrect test.
* g++.dg/cpp2a/lambda-uneval29.C: New test.

Co-authored-by: Jason Merrill 

[Bug c++/116952] [13/14/15/16 Regression] Error on lambda NTTP argument to type constraint in template parameter list of generic lambda

2025-10-24 Thread eczbek.void at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116952

--- Comment #7 from eczbek.void at gmail dot com ---
I made a patch:
https://gcc.gnu.org/pipermail/gcc-patches/2025-October/698485.html

[Bug c++/116952] [13/14/15/16 Regression] Error on lambda NTTP argument to type constraint in template parameter list of generic lambda

2025-07-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116952

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.5|13.5

--- Comment #6 from Richard Biener  ---
GCC 12 branch is being closed.