From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D40813851C1F; Tue, 19 May 2020 01:02:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D40813851C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589850126; bh=QtCnBsLpCLzcM0vfnScRbmpuJwg5mwNOGHLIvpUMUvg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=anqAbcyWIWkRD5xtLvaDJFgKFXQKtJMsng1TGsf5g2frOt8psoS8UhFGOU3zInToB 47QR/dsUjIzZ7UTcSK2A17P92oK8cNZ4CB5hYPE6z8J7yfeCTuddYX5GIZqGRlAbaL ofE9y9Vy0+3Q3sNPGEryXiUflO/rgHCxTRHK6hDg= From: "witold.baryluk+gcc at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/95174] [D] Incorrect compiled functions involving const fixed size arrays Date: Tue, 19 May 2020 01:02:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: witold.baryluk+gcc at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot 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: Tue, 19 May 2020 01:02:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95174 --- Comment #2 from Witold Baryluk --- Doh. Of course. My bad. Sorry. static arrays are value type, dynamic arrays are reference type. Changing signature to: ``` void f(immutable(float[64]) x, float[] o); ``` solves the problem.=