From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AAEE6388C02B; Tue, 16 Jun 2020 11:40:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AAEE6388C02B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592307623; bh=SL+Mcxz0sXGvO3QkIdfUS9ld1/oN+jyW6buqUroxYfo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=K089Uil0+SATu3wNFyu0E5hb2o4He/+ToXn4bnvtldYAqVC7w4LYhByJ5HUjnbcPN QI5RcJoWM/AYOLOfQux90roLMYO4+P9C8Hz6Ocw8KekcQqPjpsk2gbCatgChPFSM2G yXVpwGrg9MuAjvoQk+CxVDP2/jgbWjZw7bIsIDHM= From: "steven.spark at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55227] designated initializer for char array by string constant Date: Tue, 16 Jun 2020 11:40: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: 4.8.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: steven.spark at gmail dot com 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: cc 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, 16 Jun 2020 11:40:23 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55227 Szikra changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |steven.spark at gmail dot = com --- Comment #5 from Szikra --- I just run into this problem with gcc version 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] (GNU Tools for Arm Embedded Process= ors 7-2018-q2-update) Thanks J.R. Heisey and ensadc, the extra braces solved the error... for now. I added this url to comments in case this bug is fixed and they need to be removed. typedef struct { /// ... uint16_t serverPort; char serverAddress[128]; } ConfigParameters_t; ConfigParameters_t __attribute__((section(".eeprom"))) eeParameters =3D { /// ... .serverPort=3D1234, {.serverAddress=3D"*****"} /// weird... https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55227 };=