[cfe-commits] r65725 - in /cfe/trunk: lib/Sema/SemaDecl.cpp test/Sema/const-eval.c

Eli Friedman eli.friedman at gmail.com
Mon Mar 2 00:25:30 PST 2009


On Sat, Feb 28, 2009 at 1:56 PM, Anders Carlsson <andersca at mac.com> wrote:
> Author: andersca
> Date: Sat Feb 28 15:56:50 2009
> New Revision: 65725
>
> URL: http://llvm.org/viewvc/llvm-project?rev=65725&view=rev
> Log:
> Fix invalid VLAs/VMs in Sema::ActOnVariableDeclarator, so that the variable will have the right type by the time the initializer is checked. This ensures that code like
>
> int a[(int)(1.0 / 1.0) = { 1 } will work.
>
> Eli, please review.

Looks fine.

-Eli



More information about the cfe-commits mailing list