public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/96355] [10/11 Regression] [concepts] internal compiler error: in tsubst_pack_expansion, at cp/pt.c:12928
Date: Thu, 27 Aug 2020 12:47:47 +0000	[thread overview]
Message-ID: <bug-96355-4-Yc4AQDIOpd@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-96355-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Robert Douglas from comment #1)
> I've also hit this issue in upgrading from 9.1 to 10.2
> 
> I presume it run into the same issue, but if it helps, this more closely
> matches my use case:
> https://godbolt.org/z/zb1bP5

That code:

template<typename... Params>
concept ParamsRemain = requires(Params)
{ requires sizeof...(Params) > 0; };

template<typename... Params>
void foo()
{
        static constexpr bool pr1 = ParamsRemain<Params...>;
};

int main()
{
        foo<>();
        return 0;
}

compiles with GCC 9 and -std=c++2a -fconcepts

compiles with GCC 10.1 and -std=c++2a

ice-on-valid-code with GCC 10.2.0, 10.2.1 and 11.0 with -std=c++2a

  parent reply	other threads:[~2020-08-27 12:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-28 12:45 [Bug c++/96355] New: " src at andyf dot de
2020-08-18 21:01 ` [Bug c++/96355] " rwdougla at gmail dot com
2020-08-27 12:47 ` [Bug c++/96355] [10/11 Regression] " redi at gcc dot gnu.org
2020-08-27 12:47 ` redi at gcc dot gnu.org [this message]
2020-10-07 18:55 ` 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-96355-4-Yc4AQDIOpd@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).