[cfe-commits] P4R: Truncate CodeGEn initializer for arrays that are shorter than the initializer

Neil Booth neil at daikokuya.co.uk
Thu Nov 29 07:03:37 PST 2007

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.


More information about the cfe-commits mailing list