This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] C99 designated initializers (take 3)
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: [PATCH] C99 designated initializers (take 3)
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 7 Dec 2000 23:03:31 +0000 (GMT)
- cc: <gcc-patches at gcc dot gnu dot org>
On Thu, 7 Dec 2000, Jakub Jelinek wrote:
> has hard error messages when array designators exceed bounds (and tests for
> them, with dg-error and not dg-hard-error since I'm not a dejagnu hacker),
That's what we have the existing idiom of first testing for "warning" with
dg-bogus, and then testing for the error with a line number (and the tests
must be in that order to work) for, until someone hacks Dejagnu to have
this functionality.
> Also, it allows non-constant initializer elements with
> -std=c99 -pedantic-errors.
I take it that this still gives hard errors where you can't use
non-constant initializers (objects of static storage duration)?
> * gcc.dg/gnu99-init-3.c: New test.
Ought to be gnu99-init-1.c.
--
Joseph S. Myers
jsm28@cam.ac.uk