public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: p00ya@users.sf.net To: gcc-gnats@gcc.gnu.org Subject: c/10006: gcc segfaults on initializing flexible nested members Date: Sat, 08 Mar 2003 14:56:00 -0000 [thread overview] Message-ID: <20030308145445.15415.qmail@sources.redhat.com> (raw) >Number: 10006 >Category: c >Synopsis: gcc segfaults on initializing flexible nested members >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat Mar 08 14:56:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: p00ya@users.sf.net >Release: gcc version 3.2 20020927 (prerelease) Cygwin >Organization: >Environment: Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs Configured with: /netrel/src/gcc-3.2-3/configure --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin Thread model: posix gcc version 3.2 20020927 (prerelease) >Description: When initializing an array with a nested incomplete type, instead of the usual "initialization of flexible array member in a nested context" output, gcc segfaults. struct incomplete_t { int x; int y[]; }; struct incomplete_t a[] = { {1, 2, {3, 4}} }; >How-To-Repeat: gcc test.i (see attachment) >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="test.i" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test.i" IyAxICJ0ZXN0LmMiCiMgMSAiPGJ1aWx0LWluPiIKIyAxICI8Y29tbWFuZCBsaW5lPiIKIyAxICJ0 ZXN0LmMiCnN0cnVjdCBpbmNvbXBsZXRlX3QKewogIGludCB4OwogIGludCB5W107Cn07CgpzdHJ1 Y3QgaW5jb21wbGV0ZV90IGFbXSA9CnsKICB7MSwgMiwgezMsIDR9fQp9Owo=
next reply other threads:[~2003-03-08 14:56 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-03-08 14:56 p00ya [this message] 2003-03-08 15:15 ebotcazou
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030308145445.15415.qmail@sources.redhat.com \ --to=p00ya@users.sf.net \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).