This is the mail archive of the gcc@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: PR 2765


On Sat, 19 May 2001, Mark Mitchell wrote:

> Either that, or we sacrifice C99 on the altar of C89 regression
> elimination.
> 
> I completely agree (see original posting) that this code is a tangle.
> 
> Why is this one clause treated differently than all those above it,
> which still get errors?

I *think* the code that is meant to trigger this is (with -std=c89 
-pedantic)

void foo(int x, int y) { struct {int x; int y;} a = { x, y }; }

which used to generate a hard error, and now generates a warning - since
-pedantic should never cause errors, only warnings.

-- 
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]