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++/100198] [12 Regression] ICE with enum in lambda in pack expansion
Date: Fri, 28 Jan 2022 03:21:53 +0000	[thread overview]
Message-ID: <bug-100198-4-zekvBVsK1P@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-100198-4@http.gcc.gnu.org/bugzilla/>

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

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

https://gcc.gnu.org/g:4d2efec9f229c2e2e7cb6c3f06beb4c3e9d244a1

commit r12-6909-g4d2efec9f229c2e2e7cb6c3f06beb4c3e9d244a1
Author: Jason Merrill <jason@redhat.com>
Date:   Thu Jan 27 17:46:43 2022 -0500

    c++: pack in enumerator in lambda [PR100198]

    The GCC 8 lambda overhaul fixed most uses of lambdas in pack expansions,
but
    local enums and classes within such lambdas that depend on parameter packs
    are still broken.  For now, give a sorry instead of an ICE or incorrect
    error.

            PR c++/100198
            PR c++/100030
            PR c++/100282

    gcc/cp/ChangeLog:

            * parser.cc (cp_parser_enumerator_definition): Sorry on parameter
            pack in lambda.
            (cp_parser_class_head): And in class attributes.
            * pt.cc (check_for_bare_parameter_packs): Sorry instead of error
            in lambda.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/lambda/lambda-variadic13.C: Accept the sorry
            as well as the correct error.
            * g++.dg/cpp0x/lambda/lambda-variadic14.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-variadic14a.C: New test.
            * g++.dg/cpp0x/lambda/lambda-variadic15.C: New test.
            * g++.dg/cpp0x/lambda/lambda-variadic16.C: New test.

  parent reply	other threads:[~2022-01-28  3:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-22  8:07 [Bug c++/100198] New: ICE: unexpected expression 'E' of kind template_parm_index hewillk at gmail dot com
2021-04-22 10:35 ` [Bug c++/100198] " rguenth at gcc dot gnu.org
2021-04-22 12:45 ` hewillk at gmail dot com
2021-04-22 15:33 ` [Bug c++/100198] [12 Regression] " mpolacek at gcc dot gnu.org
2022-01-17 14:59 ` [Bug c++/100198] [12 Regression] ICE with enum in lambda in pack expansion rguenth at gcc dot gnu.org
2022-01-18 23:23 ` jason at gcc dot gnu.org
2022-01-28  3:21 ` cvs-commit at gcc dot gnu.org [this message]
2022-01-28  5:09 ` [Bug c++/100198] " jason at gcc dot gnu.org
2022-01-28  5:09 ` jason 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-100198-4-zekvBVsK1P@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).