From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2AB543858C53; Thu, 19 Jan 2023 04:38:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2AB543858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674103126; bh=h1DNKBKo98X0+5vHXPE1GTdPMYes0f45NwN9GjEI5pY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Lj9hj9AKHOn2+Y2nxWKCG+HqY0w4PKQgMF/8j/1V3VyLUNY9rtoPUjURQjND/D1u/ brqmxIv2SrNwr3AwX63jWIvjA2xIAjnZILbtBBII8oCE6zNuWc4GMaBH7VJ4CzGT7C sDqz+f4/rBZuCROSI2DBFS7zCeYRXEgIEtvLuot8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84373] g++ incorrectly resolves names for default parameters Date: Thu, 19 Jan 2023 04:38:45 +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: 7.2.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 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=3D84373 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1787r6.html >=20 >=20 > Confirmed. I should note that paper clearifies this to the tea now: A parameter shall not appear as a potentially-evaluated expression in a def= ault argument. Also note that paper is considered a defect fix for at least C++20.=