[cfe-commits] r61285 - in /cfe/trunk/lib/CodeGen: CGDecl.cpp CodeGenFunction.cpp CodeGenFunction.h

Eli Friedman eli.friedman at gmail.com
Sat Dec 20 13:24:52 PST 2008


On Sat, Dec 20, 2008 at 1:17 PM, Anders Carlsson <andersca at mac.com> wrote:
>
> 20 dec 2008 kl. 13.12 skrev Eli Friedman:
>
>> On Sat, Dec 20, 2008 at 12:46 PM, Anders Carlsson <andersca at mac.com>
>> wrote:
>>>
>>> +    assert(!SizeEntry && "Must not emit the same VLA size more than
>>> once!");
>>
>> Unless I'm mistaken, it should be pretty easy to hit this assertion
>> with a typedef; do you have a plan for how to deal with that?
>>
>
> Ah, maybe in that case we should just bail - given that it's a valid case.

That works, as long as we make sure to emit VLAs typedefs at the point
where the typedef declaration appears.

-Eli



More information about the cfe-commits mailing list