From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 54867385C017; Tue, 31 Mar 2020 10:17:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 54867385C017 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585649865; bh=GLVdd29HW0iERphC8MJnabV+B4v8tGeAsb1CKzz3F2s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CzdamvYoe0UGALMDdNy1NAgirxTqsLjbBYxOsdL8TdN18uLetiCRKy4oltHHuvE0S wewljUuiO+o3gfd/iRJwlOyiznFRDjfT3Bj9d+yZUj0UzZrYcaku3PBS+w73l184Sj II4qroMx2acRExuoDQTPT0nILxFAqTRMcl1gfqO8= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94422] [9 Regression] static_cast from std::array operator[] to enum class Date: Tue, 31 Mar 2020 10:17: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: 9.3.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: keywords everconfirmed cf_reconfirmed_on cf_known_to_work short_desc cf_known_to_fail bug_status 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2020 10:17:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94422 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Ever confirmed|0 |1 Last reconfirmed| |2020-03-31 Known to work| |9.2.0 Summary|static_cast from std::array |[9 Regression] static_cast |operator[] to enum class |from std::array operator[] | |to enum class Known to fail| |9.3.0 Status|UNCONFIRMED |NEW --- Comment #1 from Jonathan Wakely --- You didn't say what gcc options you're using, and since this only happens w= ith C++17 or C++20 (not the default options) that's not very helpful. Confirmed for -std=3Dgnu++17=