From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EADD5385E00C; Mon, 20 Apr 2020 17:43:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EADD5385E00C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587404614; bh=+k/+xlGWbt9SAQ1Kls1aXGOCVRllqIohJb/6efavVcc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DI0vzs7dAA9v6RUV5yYp79bJFqmcYKhzKm9xZ2WwMLYxw92X+F1OI83jpgOidzjJv YFnnQVzzhIyWFwaTMGbSZA553J1szATcwEEllhXv65SJH2l2BN0LNfZAd8UJnZF9ek QOGSx76S31ntj38xB5l8ZNVI3PvsMXLg0sb3XMN8= From: "gcc-bugs at marehr dot dialup.fu-berlin.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94673] [concepts] What is the return type of local parameters of requires expressions? Date: Mon, 20 Apr 2020 17:43:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gcc-bugs at marehr dot dialup.fu-berlin.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2020 17:43:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94673 --- Comment #1 from gcc-bugs at marehr dot dialup.fu-berlin.de --- After playing with this a bit more, I found out that clang actually behaves differently: ```c++ #include #include template concept same_as =3D std::is_same_v; template concept foo =3D requires(t v) { {v} -> same_as; }; // all of them work with gcc and msvc static_assert(foo); // fails with clang static_assert(foo); // fails with clang static_assert(foo); // fails with clang static_assert(foo); static_assert(foo); ``` https://godbolt.org/z/MGpfZF I created an issue at https://bugs.llvm.org/show_bug.cgi?id=3D45622=