public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jsm at polyomino dot org dot uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/12615] [3.3 Regression] initializer syntax for POD structs gives parse error
Date: Tue, 14 Oct 2003 21:38:00 -0000	[thread overview]
Message-ID: <20031014213822.9123.qmail@sources.redhat.com> (raw)
In-Reply-To: <20031014193706.12615.bruno@clisp.org>

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



------- Additional Comments From jsm at polyomino dot org dot uk  2003-10-14 21:38 -------
Subject: Re:  [3.3 Regression] initializer syntax for PAD
 structs gives parse error

On Tue, 14 Oct 2003, gdr at integrable-solutions dot net wrote:

>   object vorg = (object) { one_o: 0, allocstamp: 0 };
> 
> while valid C99, is invalid C++.

There are two extensions to C++ in play here:

* Compound literals (documented as supported as an extension in C++).

* Designated initializers, documented as unimplemented in GNU C++.  This 
example in fact uses the obsolete GNU syntax rather than the standard C99 
one.  I'd like to deprecate that obsolete syntax properly - the obstacle 
to doing so is deployed glibc headers that use the obsolete syntax in 
macros on the basis that (some version of) G++ does in fact support 
designated initializers, but only with the old and not the C99 syntax!


  parent reply	other threads:[~2003-10-14 21:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-14 19:37 [Bug c++/12615] New: initializer syntax for PAD " 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 ` jsm at polyomino dot org dot uk [this message]
2003-10-14 21:40 ` [Bug c++/12615] [3.3 Regression] initializer syntax for POD " 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

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=20031014213822.9123.qmail@sources.redhat.com \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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: link
Be 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).