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++/108526] [13 Regression] ICE in start_preparsed_function with static on generic lambdas inside a template
Date: Tue, 24 Jan 2023 22:12:04 +0000	[thread overview]
Message-ID: <bug-108526-4-pljsyVOQW9@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-108526-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

https://gcc.gnu.org/g:39ade88fa1632c659c5c4ed065fa2b62d16a8670

commit r13-5334-g39ade88fa1632c659c5c4ed065fa2b62d16a8670
Author: Jason Merrill <jason@redhat.com>
Date:   Tue Jan 24 15:29:35 2023 -0500

    c++: static lambda in template [PR108526]

    tsubst_lambda_expr uses build_memfn_type to build a METHOD_TYPE for the new
    lamba op().  This is not what we want for a C++23 static op(), but since we
    also use that METHOD_TYPE to communicate the closure type down to
    tsubst_function_decl, let's wait and turn it back at that point.

            PR c++/108526

    gcc/cp/ChangeLog:

            * pt.cc (tsubst_function_decl): Handle static lambda.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp23/static-operator-call5.C: New test.

  parent reply	other threads:[~2023-01-24 22:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-24 17:50 [Bug c++/108526] New: [13 Regression] ICE in start_preparsed_function, at cp/decl.cc:17281 gscfq@t-online.de
2023-01-24 18:25 ` [Bug c++/108526] " pinskia at gcc dot gnu.org
2023-01-24 18:30 ` jakub at gcc dot gnu.org
2023-01-24 20:22 ` jason at gcc dot gnu.org
2023-01-24 22:12 ` cvs-commit at gcc dot gnu.org [this message]
2023-01-24 22:12 ` [Bug c++/108526] [13 Regression] ICE in start_preparsed_function with static on generic lambdas inside a template jason at gcc dot gnu.org
2023-03-07 19:34 ` cvs-commit 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-108526-4-pljsyVOQW9@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).