From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 18DBA3858C50; Tue, 18 Oct 2022 12:39:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 18DBA3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666096785; bh=Ufd/5EvdV736tDZJBzT6UPiz4CpkIPL4ulBhJn75zx4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=E2s2S1piYX1dbJ16gCv/RpiIs2aBsMN6NVL0ZDMDvtEA0XGQIgsgSBxqakKJ3Fk2d /8YJfvubA2YMr4/C5HnoCP6RrXeQdFmUxouGgHiyKW+zHegDZbORiruzbpf3fZYZkI GzXEErAoc5hJbzTipAyW7Svhic9JA5+McxHqPbW8= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101733] simple-requirement prefixed with typename interpreted as type-requirement Date: Tue, 18 Oct 2022 12:39:44 +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: 11.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cf_reconfirmed_on 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101733 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2021-08-02 00:00:00 |2022-10-18 --- Comment #2 from Jonathan Wakely --- template requires requires { typename T::type; (typename T::type()); // (1) T::type(); // (2) typename T::type(); // (3) } void f(T) { } All compilers accept (1) and (2) but only Clang accepts (3)=