From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 476693858D32; Mon, 8 May 2023 04:02:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 476693858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683518557; bh=iRFMQn+BUYmMaHI1+hVva0UoefksJniqKGG2ldAq3yI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EybnKB0Ol26PZxM9bSfo4WV28H6IDJ6srSPk8ja+O3AsXyo92h0WVLpbGerWdNIIo CEsAGblamT0gANS4jtwCuA4hVLayRMuM/eAxw9q8vCwO0N9TkoeHNL8Nq3qwbGP+B+ BsCwEnQ3dPJOLdHPu6vddqDQYaiWOSyHA82p/lBc= From: "jlame646 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109763] GCC accepts invalid program involving decltype(classtype::memberfunction) when used with concepts Date: Mon, 08 May 2023 04:02:36 +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: 13.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jlame646 at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109763 --- Comment #10 from Jason Liam --- Upon reading more on this, seems this is well-formed. Note [temp.constr.normal#1.4] is about parameter mapping(which is valid in this case) so the last sentence in my previous quoted reference does not apply. Instead [temp.constr.atomic#3] will apply so that the constraint is not satisfied and hence result should be 0(which is what all compilers generate= ). Thus all compilers are correct in accepting the code.=