public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "friedkeenan at protonmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98500] ICE template template parameter with default parameter lambda Date: Wed, 23 Feb 2022 08:14:30 +0000 [thread overview] Message-ID: <bug-98500-4-ZJce8qwZSY@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-98500-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98500 friedkeenan at protonmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |friedkeenan at protonmail dot com --- Comment #3 from friedkeenan at protonmail dot com --- I've triggered this without a template template parameter: #include <type_traits> template<auto unique = [] {}> struct unique_empty_type { }; template<bool IsPresent, typename T> using maybe_present = std::conditional_t<IsPresent, T, unique_empty_type<>>; using empty = maybe_present<false, int>; Godbolt link: https://godbolt.org/z/hf9csv8ne Upon instantiating `empty`, an ICE is thrown. To me this seems like the same bug.
next prev parent reply other threads:[~2022-02-23 8:14 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-02 14:41 [Bug c++/98500] New: " bastien.penavayre at epitech dot eu 2021-01-04 12:31 ` [Bug c++/98500] " marxin at gcc dot gnu.org 2021-12-22 3:52 ` pinskia at gcc dot gnu.org 2022-02-23 8:14 ` friedkeenan at protonmail dot com [this message] 2023-05-26 6:56 ` pinskia at gcc dot gnu.org 2024-04-15 22:21 ` pinskia 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-98500-4-ZJce8qwZSY@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: linkBe 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).