public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/10006: gcc segfaults on initializing flexible nested members
@ 2003-03-08 14:56 p00ya
  0 siblings, 0 replies; 2+ messages in thread
From: p00ya @ 2003-03-08 14:56 UTC (permalink / raw)
  To: gcc-gnats


>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=


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

* Re: c/10006: gcc segfaults on initializing flexible nested members
@ 2003-03-08 15:15 ebotcazou
  0 siblings, 0 replies; 2+ messages in thread
From: ebotcazou @ 2003-03-08 15:15 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, p00ya

Synopsis: gcc segfaults on initializing flexible nested members

State-Changed-From-To: open->closed
State-Changed-By: ebotcazou
State-Changed-When: Sat Mar  8 15:15:45 2003
State-Changed-Why:
    Duplicate of PR c/9799. Fixed on all active branches.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10006


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

end of thread, other threads:[~2003-03-08 15:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-08 14:56 c/10006: gcc segfaults on initializing flexible nested members p00ya
2003-03-08 15:15 ebotcazou

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).