This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix up vla, vm and [*] semantics for C
Mike Stump wrote:
> On May 12, 2006, at 5:29 PM, Neil Booth wrote:
>>> gcc.c-torture/compile/20010605-1.c:7: error: not an ordinary
>>> identifier, structure and unions are not ordinary
>>
>> This seems a particularly bizarre diagnostic (not unusual in
>> GCC...) IMO structures and unions are quite ordinary. 8-)
>>
>> Why not simply say members cannot have variably modified type?
>
> Ok, fixed:
>
> gcc.dg/vla-6.c:22: error: a member of a structure or union cannot have a
> variably modified type
>
> I think that sounds better and still uses language from the standard...
To be pedantic, we would ideally say "field" in C and "data member" in
C++. However, C++ programmers tend to understand "field" just fine, so
for error messages from common code I would say "field".
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713