From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8183 invoked by alias); 24 Jan 2013 13:33:50 -0000 Received: (qmail 8018 invoked by uid 48); 24 Jan 2013 13:33:14 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/56078] causes cc1 to crash Date: Thu, 24 Jan 2013 13:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg02285.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56078 --- Comment #8 from Jakub Jelinek 2013-01-24 13:= 33:13 UTC --- Before my patch we got: 20030305-1.c:15:5: warning: excess elements in struct initializer [enabled = by default] 20030305-1.c:15:5: warning: (near initialization for =E2=80=98s2_array[0]= =E2=80=99) [enabled by default] 20030305-1.c:16:5: warning: excess elements in struct initializer [enabled = by default] 20030305-1.c:16:5: warning: (near initialization for =E2=80=98s2_array[1]= =E2=80=99) [enabled by default] 20030305-1.c:17:5: warning: excess elements in struct initializer [enabled = by default] 20030305-1.c:17:5: warning: (near initialization for =E2=80=98s2_array[2]= =E2=80=99) [enabled by default] and with the patch: 20030305-1.c:15:5: error: initialization of flexible array member in a nest= ed context 20030305-1.c:15:5: error: (near initialization for =E2=80=98s2_array[0].s1_= array=E2=80=99) 20030305-1.c:16:5: error: initialization of flexible array member in a nest= ed context 20030305-1.c:16:5: error: (near initialization for =E2=80=98s2_array[1].s1_= array=E2=80=99) 20030305-1.c:17:5: error: initialization of flexible array member in a nest= ed context 20030305-1.c:17:5: error: (near initialization for =E2=80=98s2_array[2].s1_= array=E2=80=99) instead. I'd lean towards the errors being correct, Joseph, do you agree? If so, I'= ll move the 20030305-1.c testcase into gcc.dg and add dg-error comments.