public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12615] New: initializer syntax for PAD structs gives parse error
@ 2003-10-14 19:37 gcc-bugzilla at gcc dot gnu dot org
  2003-10-14 19:47 ` [Bug c++/12615] [3.3 Regression] " pinskia at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 17+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2003-10-14 19:37 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12615

           Summary: initializer syntax for PAD structs gives parse error
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bruno at clisp dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


The following snippet of code used to compile with g++ 3.2.2, but now
gives an error.

============================ bug1.cc ===================================
struct object
{
  unsigned long one_o;
  unsigned int allocstamp;
};
void gc_mark (object obj)
{
  object vorg = (object) { one_o: 0, allocstamp: 0 };
}
========================================================================
$ g++ -O -c bug1.cc
bug1.cc: In function `void gc_mark(object)':
bug1.cc:8: error: `object' has no non-static data member named
`object::one_o'
bug1.cc:8: error: too many initializers for `object'

Environment:
System: Linux honolulu.ilog.fr 2.4.21-0.13mdk #1 Fri Mar 14 15:08:06 EST 2003 i686 unknown unknown GNU/Linux
Architecture: i686

host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.3.1/configure --prefix=/home/haible/gnu/inst-gcc/3.3.1 --enable-shared --enable-threads=posix --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --with-system-zlib

How-To-Repeat:

See above,
------- Additional Comments From bruno at clisp dot org  2003-10-14 19:37 -------
Fix:

unknown.


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

end of thread, other threads:[~2003-10-18 15:20 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-14 19:37 [Bug c++/12615] New: initializer syntax for PAD structs gives parse error gcc-bugzilla at gcc dot gnu dot org
2003-10-14 19:47 ` [Bug c++/12615] [3.3 Regression] " pinskia at gcc dot gnu dot org
2003-10-14 19:54 ` gdr at integrable-solutions dot net
2003-10-14 21:38   ` Joseph S. Myers
2003-10-14 22:10     ` Gabriel Dos Reis
2003-10-14 20:13 ` schwab at suse dot de
2003-10-14 20:40 ` gdr at integrable-solutions dot net
2003-10-14 20:46 ` bruno at clisp dot org
2003-10-14 21:38 ` [Bug c++/12615] [3.3 Regression] initializer syntax for POD " jsm at polyomino dot org dot uk
2003-10-14 21:40 ` gdr at integrable-solutions dot net
2003-10-15 10:44 ` bruno at clisp dot org
2003-10-15 11:20 ` gdr at integrable-solutions dot net
2003-10-15 11:49 ` bruno at clisp dot org
2003-10-15 16:23 ` gdr at integrable-solutions dot net
2003-10-15 18:43 ` bruno at clisp dot org
2003-10-18 11:32 ` gdr at integrable-solutions dot net
2003-10-18 15:21 ` 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).