public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9623: struct named initializer regression
@ 2003-02-08  0:16 V.Haisman
  0 siblings, 0 replies; only message in thread
From: V.Haisman @ 2003-02-08  0:16 UTC (permalink / raw)
  To: gcc-gnats

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1516 bytes --]


>Number:         9623
>Category:       c++
>Synopsis:       struct named initializer regression
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 08 00:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     VÁCLAV HAISMAN
>Release:        3.3 20030131 (prerelease)
>Organization:
>Environment:
System: FreeBSD logout.sh.cvut.cz 4.7-STABLE FreeBSD 4.7-STABLE #0: Sun Jan 5 15:41:58 CET 2003 root@logout.sh.cvut.cz:/usr/src/sys/compile/logout-ipv6 i386


	
host: i386-unknown-freebsd4.7
build: i386-unknown-freebsd4.7
target: i386-unknown-freebsd4.7
configured with: ../srcdir/configure --prefix=/home/4/wilx --srcdir=/home/4/wilx/tmp/gcc33/srcdir --enable-shared --enable-languages=c,c++,objc,java,f77 --enable-threads=posix --enable-version-specific-runtime-libs --enable-haifa --enable-dwarf2 --with-cpu=i686 --enable-libgcj
>Description:
	This simple piece of code fails to build with this error using GCC 3.3 or 3.4. 
        It builds without warning using GCC 3.2.

        $ c++ -W -c bug.cxx
        bug.cxx:2: error: too many initializers for `S'
        bug.cxx:2: warning: missing initializer for member `S::y'

        This test case has been derived from Cygwin sources that uses such initializers on many places.
>How-To-Repeat:
        struct S { int x;  int y; };
        S s = { x:1, y:2 };
>Fix:
	

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-08  0:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-08  0:16 c++/9623: struct named initializer regression V.Haisman

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