This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] C99 designated initializers (take 3)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]