From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1B29D3858D35; Thu, 19 Jan 2023 01:36:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B29D3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674092197; bh=YsV3Z12afMvlJv90VppdCObR356FnYO4Djo1986ig24=; h=From:To:Subject:Date:In-Reply-To:References:From; b=epuWkNOFOcp0o6NIV+8VF5RGAEV4xd3Lgooq603A4EhucKsiAMM7zYylzpaK2uDru OOXmlUaI2L2b4A42NNQ2QvUzSl3HwaSCpDkDvIBp33UJpqJ3lrwWxKH9Ygnxy2WPUv ZFV+cWF8MnPQPfLYN6PErXE4e2YZs9p5JOqOEPc8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106485] Can't use heap pointer in `static_assert` Date: Thu, 19 Jan 2023 01:36: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.0 X-Bugzilla-Keywords: 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed bug_status 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=3D106485 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-01-19 --- Comment #3 from Andrew Pinski --- I think comment #0 is a different issue from comment #2 really. comment #0 has a temporary while comment #2 has an consteval. Also GCC accepts this just fine though: #include static_assert(!std::string{"abcdegfgggggggggggg"}.empty());=