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++/103408] ICE when requires auto(x) in C++23
Date: Thu, 02 Dec 2021 13:12:05 +0000	[thread overview]
Message-ID: <bug-103408-4-fcsE1mh522@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-103408-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>:

https://gcc.gnu.org/g:6f43a8a08053a871e785e2ebc80383e0849efb6f

commit r12-5710-g6f43a8a08053a871e785e2ebc80383e0849efb6f
Author: Marek Polacek <polacek@redhat.com>
Date:   Tue Nov 30 16:43:19 2021 -0500

    c++: ICE with unnamed tparm and concept [PR103408]

    Here we crash when issuing the "constraint C has type T, not bool"
    error, because pp_cxx_parameter_mapping wasn't prepared to see an
    anonymous template parameter.  With this patch we print

    error: constraint 'auto(<lambda>) [with <unnamed> = 0]' has type
'<lambda()>', not 'bool'

    The "<unnamed>" is what this patch adds.

            PR c++/103408

    gcc/cp/ChangeLog:

            * cxx-pretty-print.c (pp_cxx_parameter_mapping): Print "<unnamed>"
            rather than crash on an unnamed template parameter.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp23/concepts-err1.C: New test.

  parent reply	other threads:[~2021-12-02 13:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-24 16:20 [Bug c++/103408] New: " hewillk at gmail dot com
2021-11-24 16:23 ` [Bug c++/103408] " mpolacek at gcc dot gnu.org
2021-11-24 16:24 ` mpolacek at gcc dot gnu.org
2021-11-25 13:38 ` hewillk at gmail dot com
2021-11-30 21:22 ` mpolacek at gcc dot gnu.org
2021-12-02 13:12 ` cvs-commit at gcc dot gnu.org [this message]
2021-12-06 13:59 ` ppalka at gcc dot gnu.org
2021-12-14 13:16 ` cvs-commit at gcc dot gnu.org
2021-12-15 10:20 ` cvs-commit at gcc dot gnu.org
2021-12-15 20:04 ` 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-103408-4-fcsE1mh522@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).