Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Andrew Cagney <ac131313@ges.redhat.com>,
	Michael Snyder <msnyder@redhat.com>
Cc: Daniel Jacobowitz <drow@mvista.com>,
	Joel Brobecker <brobecker@gnat.com>,
	gdb-patches@sources.redhat.com
Subject: Re: Question regarding bizarre ','
Date: Tue, 06 Aug 2002 16:15:00 -0000	[thread overview]
Message-ID: <1020806231458.ZM32372@localhost.localdomain> (raw)
In-Reply-To: Andrew Cagney <ac131313@ges.redhat.com> "Re: Question regarding bizarre ','" (Aug  5, 10:20pm)

On Aug 5, 10:20pm, Andrew Cagney wrote:

> > By most compilers, but some (possibly deviant ones) will give you
> > an error, or at least a warning.  I have definitely encountered this
> > when building GDB, and I think most array and enum initializers in
> > gdb do not have the trailing comma for this reason.
> 
> This is true of enums (cf the alpha compiler) but not, I believe, of 
> array initializers.

I am unable to find anything in Harbison and Steele which indicates
that a trailing comma is acceptable in an array initializer.  (They
don't seem to mention it one way or another.)

I recall using some compilers in the past where a trailing comma in an
array initializer was definitely not accepted.  In fact, I was told at
the time that some code I had written which had a trailing comma was
not standards compliant.

Kevin


  reply	other threads:[~2002-08-06 23:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-05 18:21 Joel Brobecker
2002-08-05 18:26 ` Daniel Jacobowitz
2002-08-05 18:39   ` Michael Snyder
2002-08-05 19:20     ` Andrew Cagney
2002-08-06 16:15       ` Kevin Buettner [this message]
2002-08-06 16:44         ` david carlton

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=1020806231458.ZM32372@localhost.localdomain \
    --to=kevinb@redhat.com \
    --cc=ac131313@ges.redhat.com \
    --cc=brobecker@gnat.com \
    --cc=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=msnyder@redhat.com \
    /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