[prev in list] [next in list] [prev in thread] [next in thread]
List: cfe-commits
Subject: [cfe-commits] P4R: Truncate CodeGEn initializer for arrays that
From: neil () daikokuya ! co ! uk (Neil Booth)
Date: 2007-11-29 22:33:35
Message-ID: 20071129223335.GE16172 () daikokuya ! co ! uk
[Download RAW message or body]
Chris Lattner wrote:-
>
> On Nov 29, 2007, at 7:03 AM, Neil Booth wrote:
>
> >Christopher Lamb wrote:-
> >
> >>This allows the following to CodeGen, with warnings:
> >>
> >>int ary[2] = {1, 2, 3, 4};
> >
> >Why not just reject outright? This is clear junk that is better
> >flagged to the user as uncompilable than being lost in a sea of
> >compiler warning noise.
>
> The C spec doesn't seem to require this to be rejected, do you
> disagree Neil?
Sure; it is a violation of constraint 6.7.8p2.
Neil.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic