public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/92838] ICE (internal compiler error) calling lambda object with requires clause (in in dependent_type_p)
Date: Tue, 02 Jun 2020 12:52:50 +0000	[thread overview]
Message-ID: <bug-92838-4-GARKgIXDmp@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-92838-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92838

--- Comment #4 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)

  parent reply	other threads:[~2020-06-02 12:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-92838-4@http.gcc.gnu.org/bugzilla/>
2020-05-31 15:25 ` 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 [this message]
2020-06-02 12:57 ` ppalka at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-92838-4-GARKgIXDmp@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).