From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 860AC3858D35; Mon, 2 Oct 2023 01:26:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 860AC3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696209983; bh=1JQvfLq47AFowWb3k2ofXc4yZD1Mo3+TmjyrlfKyJms=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IaLb8Nt6/NeFjIhOBBcNBF+gUiGREyL9Z0cJeP6ttIyn4bNBm35CNGvqUWz9u7JiT DjqyOH8EgM4/IK00Dqex3vaOWnf1sEol+4Nqhr+P4n73XmxPnz+zR7+NOmW/5ZveVL ZlB1rOL8UEVzxPwpKVag76zWBq3hrSxBS6AwhXEU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111660] Compilation of constexpr function returning enum takes exponential time with -std=c++2a Date: Mon, 02 Oct 2023 01:26:23 +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: 14.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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=3D111660 --- Comment #5 from Andrew Pinski --- Note for non-C++11 constexpr, using switch here would most likely be better= .=