From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 58EFE3851151; Fri, 28 Oct 2022 14:27:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 58EFE3851151 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666967253; bh=7iUpOnW+PJgBPdVsx75spnEir+VrdwgvmCszN44LHTk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=c3KNXBIp8vwmF6bRfiKIABumLNMXyJT5/5gv2w8autIcwSXoeh5xp0I0veoKKQ2DV J5aO4TCo27kL6tUCaoEXZ8MdeUB9xiWiIL7f5Eyedrj5M/0nH08nZHFY8n5FzPciT4 /EAFDmoRG8DYjRdltbp5v47wVkdxrzKYMhjwIEu0= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107439] use of static member function in requires-expression depends on declaration order Date: Fri, 28 Oct 2022 14:27:33 +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.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107439 --- Comment #2 from Patrick Palka --- So the question is if in C++20 mode we're allowed to reject ahead of time a call to an unknown template-id with dependent template arguments and no function arguments (as in the original testcase): template void f() { g(); // OK? gcc rejects, clang/msvc accept }=