From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21173 invoked by alias); 22 Jul 2004 06:03:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 21166 invoked by uid 48); 22 Jul 2004 06:03:16 -0000 Date: Thu, 22 Jul 2004 06:03:00 -0000 From: "segher at kernel dot crashing dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20040722060313.16667.segher@kernel.crashing.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/16667] New: GCC allows invalid syntax in C99 designated initializers X-Bugzilla-Reason: CC X-SW-Source: 2004-07/txt/msg02629.txt.bz2 List-Id: GCC silently accepts the following invalid code (with -Wall -W, any optimization level, whether C99 or gnu99 mode is asked for or not): -- snip -- struct x { int a; float b; }; struct x bla = { .a 42 }; -- snip -- (it should be .a = 42) -- Summary: GCC allows invalid syntax in C99 designated initializers Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: segher at kernel dot crashing dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16667