From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4321A3858D38; Thu, 22 Sep 2022 19:42:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4321A3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663875754; bh=3s0qkcAXQ5eNswCWg4zovO7UEG4vlOUNG6VyAlviark=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sBekMlsVNhLl+AAhauy7o4xYAdL3Z2ZVWvvfT+1xRMcBvDG9FNbOtTv7ozwOLdqBp YMdMi6Sk4TIs18OODMKntiqpSHw9Xr60q61Et+xYHFfXpgsOdInbZSpMY7hE4qH/zB p9NKuuCC1O75hzSMYWAMyRNRhOEXzwByz6CzdFWc= From: "stian.skjelstad at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107010] iterate section("mysection") struct mystruct fails if first node is const and compiling with O2 or greater Date: Thu, 22 Sep 2022 19:42:34 +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: 12.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stian.skjelstad at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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=3D107010 --- Comment #2 from Stian Skjelstad --- Thank you for an amazing fast usefull reply.=