From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F309C3858289; Sat, 24 Dec 2022 19:19:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F309C3858289 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671909547; bh=gfjN8aQBN4xmQB3+QyAEiZvYyCgyE+mt+2aYX4Ng8Fg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bK9RT0ek6dYatF+XRVcsjkGxDoxvxKd2vm3u0LB85JOWTjUHRSmbL3+6ZaFbZoBjn N40E1WdkEevC9Sk3tgzjFQX471rxpA+Z/qCWbRb3XFeh18DfUk8EUJ+lYQ6Uhydu0K m/c28piIZFj0HB/IbYo484awbrD/6NkJz4TsFb38= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108218] [12/13 Regression] Constant arguments in the new expression is not checked in unevaluated operand Date: Sat, 24 Dec 2022 19:19:05 +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: 12.1.0 X-Bugzilla-Keywords: accepts-invalid, needs-bisection, rejects-valid 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: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cf_known_to_work everconfirmed short_desc cf_known_to_fail target_milestone keywords 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=3D108218 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2022-12-24 Known to work| |11.3.0 Ever confirmed|0 |1 Summary|[12 Regression] Constant |[12/13 Regression] Constant |arguments in the new |arguments in the new |expression is not checked |expression is not checked |in unevaluated operand |in unevaluated operand Known to fail| |12.1.0 Target Milestone|--- |12.3 Keywords| |needs-bisection, | |rejects-valid --- Comment #2 from Andrew Pinski --- Confirmed. Here is a rejects valid code: template concept C =3D requires { new int[(int)sizeof(T) - 4]; }; template class CC { CC() requires C { new int[(int)sizeof(T) - 4]; } CC() { } }; template class CC;=