public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/109692] [12/13/14 Regression] ICE on concept as default template parameter to iife lambda in fold expression in static member template function since r12-8110-ge2c7070ac77405
Date: Fri, 12 Jan 2024 10:43:55 +0000	[thread overview]
Message-ID: <bug-109692-4-uoTNhqgn3y@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-109692-4@http.gcc.gnu.org/bugzilla/>

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
           Keywords|                            |error-recovery,
                   |                            |ice-on-valid-code,
                   |                            |rejects-valid

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
So indeed GCC 11.2 doesn't ICE but errors like

t.C: In instantiation of 'static void variadic<params>::bug() [with params =
{int}]':
t.C:13:29:   required from here
t.C:9:47: error: no match for call to '(variadic<int>::bug()::<lambda()>) ()'
    7 |                         ([]<bool x = always_true<params>>() {
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    8 |                                      if constexpr (x) callee<params>();
      |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    9 |                                              }(), ...);
      |                                              ~^~
t.C:7:26: note: candidate: 'template<bool x> variadic<int>::bug()::<lambda()>'
    7 |                         ([]<bool x = always_true<params>>() {
      |                          ^
t.C:7:26: note:   template argument deduction/substitution failed:

but I regard we should accept this.  Given the ICE is error-recovery the
regression should be P4 and that we reject the code isn't a regression.

Separating these bugs might be nice.  Since it's marked as regression it's P4.

      parent reply	other threads:[~2024-01-12 10:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-02  6:17 [Bug c++/109692] New: ICE on concept as default template parameter to iife lambda in fold expression in static member template function rl.alt.accnt at gmail dot com
2023-05-02 14:26 ` [Bug c++/109692] [12/13/14 Regression] ICE on concept as default template parameter to iife lambda in fold expression in static member template function since r12-8110-ge2c7070ac77405 marxin at gcc dot gnu.org
2023-05-03  3:49 ` pinskia at gcc dot gnu.org
2024-01-12 10:43 ` rguenth at gcc dot gnu.org [this message]

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-109692-4-uoTNhqgn3y@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).