From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 63293385BF81; Sat, 27 Jun 2020 18:29:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 63293385BF81 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593282543; bh=SEM8ebnhNxZ9WmZZ92J/Vky5RVtLxJMFl/BAssN+/S4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=m8zNhKY+R4BJ7hUifoP/3H9m4+hGiMh20UqMzn+CZvrn6EGzSm18hW+tIZJ1VpVFW sDDiSCxM1rfT4TG8/2+5WeX8AWMQgyfSCcCcKoWWAlsJkr2iASdH20k4rWgu+4/Diw 2WW1q98O3kTucC3v7T3saDW2jlZ0bJi3D2B/25LU= From: "slyfox at inbox dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95942] [11 regression] offsetof on an array: error: 'e' is not a constant expression Date: Sat, 27 Jun 2020 18:29:03 +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: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at inbox dot ru 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 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: Sat, 27 Jun 2020 18:29:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95942 --- Comment #1 from Sergei Trofimovich --- Original code looks is at https://github.com/dolphin-emu/dolphin/blob/2e8d1dd1dbcca7095e9d842f1df037c= be76868e4/Source/Core/Core/DSP/Jit/x64/DSPEmitter.cpp#L476: """ ... Gen::OpArg DSPEmitter::M_SDSP_r_st(size_t index) { return MDisp(R15, static_cast(offsetof(SDSP, r.st[index]))); } ... """=