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 07/10] test: evaluate pointers to C99 vla correctly.


Tom> I suppose right now gcc claims that 'vla_ptr' has type 'int *'.
Tom> But I don't see why that is necessarily so.  Are compilers required to
Tom> declare this parameter as an "int *" and not "int[n]"?

Ok, I read up on array-like declarators and I see that this actually is
how C is defined, even for VLAs.  Given that I think this patch is fine.

Tom


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