This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 05/10] vla: allow side effects for sizeof argument


On 11/18/2013 08:39 AM, Agovic, Sanimir wrote:
> 
> It turns out this patch is not needed anymore as the bounds are resolved 
> before the sizeof function is called. So in v2 this patch will be dropped
> from the series.
> 
>> >     (gdb) print sizeof (array[x++])
>> > 
>> > For an ordinary array this should not modify x.
> Indeed, that is the behavior we have now in HEAD@vla-c99.

Sounds like something that the testsuite should have caught.
I guess we don't have such a test?

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]