From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C4FFF385C8B0; Thu, 24 Aug 2023 18:29:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C4FFF385C8B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692901747; bh=IVVSIeqbMnIKWoBTm8Ti0VAOw/GPlwN7Z6okC7U+FeI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mBddVhVkTn1pLfMIF1elykafFHbIycIH0gncDbAdwuLB8LEeTj2LH9n+8185jndj2 XTUSP6rWL6gQU2cwlvkHt9OtCBxRFD+TsjezEdoCn5qN265Yj3/NuX2IqOXN9m0r2o rpZOiB3xgrD5a0WFRFYizhbpjV+ByAEU8kDiSNo8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111132] [11/12/13/14 Regression] Function redeclaration in local scope breaks constant expression evaluation Date: Thu, 24 Aug 2023 18:29:07 +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.2.1 X-Bugzilla-Keywords: 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work cf_known_to_fail everconfirmed bug_status keywords short_desc 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=3D111132 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |8.5.0 Known to fail| |9.1.0 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Keywords| |needs-bisection Summary|Function redeclaration in |[11/12/13/14 Regression] |local scope breaks constant |Function redeclaration in |expression evaluation |local scope breaks constant | |expression evaluation Last reconfirmed| |2023-08-24 --- Comment #1 from Andrew Pinski --- Confirmed. This used to mostly worked in GCC 8.5.0 and before. In GCC 8.5.0 and before GCC would produce a bogus warning but the static_as= sert would worked. :7:20: warning: inline function 'constexpr bool bar()' used but nev= er defined constexpr bool bar(void); ^~~=