public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/92633] [concepts] constrained lambda with placehoder syntax getting wrong substitution [not found] <bug-92633-4@http.gcc.gnu.org/bugzilla/> @ 2020-06-01 15:40 ` ppalka at gcc dot gnu.org 2020-06-02 1:38 ` cvs-commit at gcc dot gnu.org ` (4 subsequent siblings) 5 siblings, 0 replies; 6+ messages in thread From: ppalka at gcc dot gnu.org @ 2020-06-01 15:40 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92633 Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org CC| |ppalka at gcc dot gnu.org Status|NEW |ASSIGNED Last reconfirmed|2019-11-22 00:00:00 |2020-6-1 --- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> --- Reconfirmed with GCC master, looking into it. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/92633] [concepts] constrained lambda with placehoder syntax getting wrong substitution [not found] <bug-92633-4@http.gcc.gnu.org/bugzilla/> 2020-06-01 15:40 ` [Bug c++/92633] [concepts] constrained lambda with placehoder syntax getting wrong substitution ppalka at gcc dot gnu.org @ 2020-06-02 1:38 ` cvs-commit at gcc dot gnu.org 2020-06-02 12:52 ` cvs-commit at gcc dot gnu.org ` (3 subsequent siblings) 5 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2020-06-02 1:38 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92633 --- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>: https://gcc.gnu.org/g:c2449995ca36ea955e3c6d4ee7f0d401b512c897 commit r11-779-gc2449995ca36ea955e3c6d4ee7f0d401b512c897 Author: Patrick Palka <ppalka@redhat.com> Date: Mon Jun 1 21:37:04 2020 -0400 c++: constrained lambda inside template [PR92633] When regenerating a constrained lambda during instantiation of an enclosing template, we are forgetting to substitute into the lambda's constraints. Fix this by substituting through the constraints during tsubst_lambda_expr. gcc/cp/ChangeLog: PR c++/92633 PR c++/92838 * pt.c (tsubst_function_decl): Don't do set_constraints when regenerating a lambda. (tsubst_lambda_expr): Substitute into the lambda's constraints and do set_constraints here. gcc/testsuite/ChangeLog: PR c++/92633 PR c++/92838 * g++.dg/cpp2a/concepts-lambda11.C: New test. * g++.dg/cpp2a/concepts-lambda12.C: New test. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/92633] [concepts] constrained lambda with placehoder syntax getting wrong substitution [not found] <bug-92633-4@http.gcc.gnu.org/bugzilla/> 2020-06-01 15:40 ` [Bug c++/92633] [concepts] constrained lambda with placehoder syntax getting wrong substitution ppalka at gcc dot gnu.org 2020-06-02 1:38 ` cvs-commit at gcc dot gnu.org @ 2020-06-02 12:52 ` cvs-commit at gcc dot gnu.org 2020-06-02 12:56 ` ppalka at gcc dot gnu.org ` (2 subsequent siblings) 5 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2020-06-02 12:52 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92633 --- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>: https://gcc.gnu.org/g:40912c25b57b4e21aae20a4896624387aa13f7ed commit r10-8223-g40912c25b57b4e21aae20a4896624387aa13f7ed Author: Patrick Palka <ppalka@redhat.com> Date: Mon Jun 1 21:37:04 2020 -0400 c++: constrained lambda inside template [PR92633] When regenerating a constrained lambda during instantiation of an enclosing template, we are forgetting to substitute into the lambda's constraints. Fix this by substituting through the constraints during tsubst_lambda_expr. gcc/cp/ChangeLog: PR c++/92633 PR c++/92838 * pt.c (tsubst_function_decl): Don't do set_constraints when regenerating a lambda. (tsubst_lambda_expr): Substitute into the lambda's constraints and do set_constraints here. gcc/testsuite/ChangeLog: PR c++/92633 PR c++/92838 * g++.dg/cpp2a/concepts-lambda11.C: New test. * g++.dg/cpp2a/concepts-lambda12.C: New test. (cherry picked from commit c2449995ca36ea955e3c6d4ee7f0d401b512c897) ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/92633] [concepts] constrained lambda with placehoder syntax getting wrong substitution [not found] <bug-92633-4@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 2020-06-02 12:52 ` cvs-commit at gcc dot gnu.org @ 2020-06-02 12:56 ` ppalka at gcc dot gnu.org 2020-06-02 13:10 ` ppalka at gcc dot gnu.org 2020-06-02 13:12 ` ppalka at gcc dot gnu.org 5 siblings, 0 replies; 6+ messages in thread From: ppalka at gcc dot gnu.org @ 2020-06-02 12:56 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92633 Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |10.2 --- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> --- Fixed for GCC 10.2+. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/92633] [concepts] constrained lambda with placehoder syntax getting wrong substitution [not found] <bug-92633-4@http.gcc.gnu.org/bugzilla/> ` (3 preceding siblings ...) 2020-06-02 12:56 ` ppalka at gcc dot gnu.org @ 2020-06-02 13:10 ` ppalka at gcc dot gnu.org 2020-06-02 13:12 ` ppalka at gcc dot gnu.org 5 siblings, 0 replies; 6+ messages in thread From: ppalka at gcc dot gnu.org @ 2020-06-02 13:10 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92633 Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |db0451 at gmail dot com --- Comment #5 from Patrick Palka <ppalka at gcc dot gnu.org> --- *** Bug 93152 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/92633] [concepts] constrained lambda with placehoder syntax getting wrong substitution [not found] <bug-92633-4@http.gcc.gnu.org/bugzilla/> ` (4 preceding siblings ...) 2020-06-02 13:10 ` ppalka at gcc dot gnu.org @ 2020-06-02 13:12 ` ppalka at gcc dot gnu.org 5 siblings, 0 replies; 6+ messages in thread From: ppalka at gcc dot gnu.org @ 2020-06-02 13:12 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92633 --- Comment #6 from Patrick Palka <ppalka at gcc dot gnu.org> --- *** Bug 93154 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-06-02 13:12 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-92633-4@http.gcc.gnu.org/bugzilla/> 2020-06-01 15:40 ` [Bug c++/92633] [concepts] constrained lambda with placehoder syntax getting wrong substitution ppalka at gcc dot gnu.org 2020-06-02 1:38 ` cvs-commit at gcc dot gnu.org 2020-06-02 12:52 ` cvs-commit at gcc dot gnu.org 2020-06-02 12:56 ` ppalka at gcc dot gnu.org 2020-06-02 13:10 ` ppalka at gcc dot gnu.org 2020-06-02 13:12 ` ppalka at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).