public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16667] New: GCC allows invalid syntax in C99 designated initializers
@ 2004-07-22  6:03 segher at kernel dot crashing dot org
  2004-07-22  6:06 ` [Bug c/16667] " segher at kernel dot crashing dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: segher at kernel dot crashing dot org @ 2004-07-22  6:03 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-10-25 22:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-22  6:03 [Bug c/16667] New: GCC allows invalid syntax in C99 designated initializers segher at kernel dot crashing dot org
2004-07-22  6:06 ` [Bug c/16667] " segher at kernel dot crashing dot org
2004-07-22  6:27 ` pinskia at gcc dot gnu dot org
2004-10-25 22:23 ` cvs-commit at gcc dot gnu dot org
2004-10-25 22:25 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).