public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "janpmoeller at gmx dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/112769] ICE on valid code related to requires-expression Date: Thu, 30 Nov 2023 18:48:46 +0000 [thread overview] Message-ID: <bug-112769-4-1jcMDFsLbE@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-112769-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112769 --- Comment #1 from janpmoeller at gmx dot de --- The following equivalent program does not trigger the ICE: ////////////////////////////////////////////////////////////// template<typename T, typename U> concept C = requires (U u) { T{u}; }; template<int I, typename T> struct type { constexpr explicit type(T value) { } template<typename U> constexpr explicit type(type<I, U> value) requires C<T, type<I, U>> { } }; template <typename T> using alias = type<0, T>; constexpr alias foo{123}; //////////////////////////////////////////////////////////////
next prev parent reply other threads:[~2023-11-30 18:48 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-11-29 19:25 [Bug c++/112769] New: " janpmoeller at gmx dot de 2023-11-30 18:48 ` janpmoeller at gmx dot de [this message] 2024-02-02 17:57 ` [Bug c++/112769] [11/12/13/14 Regression] " ppalka at gcc dot gnu.org 2024-02-02 17:59 ` ppalka at gcc dot gnu.org 2024-02-03 0:07 ` cvs-commit at gcc dot gnu.org 2024-02-03 0:11 ` [Bug c++/112769] [11/12/13 " ppalka at gcc dot gnu.org 2024-04-15 15:34 ` [Bug c++/112769] [11/12 " 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-112769-4-1jcMDFsLbE@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).