This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] |
Hello Joseph, Olivier Hainque wrote: > it seems to me that restricting the artificial TYPE_DECL > creation to the FIELD and NORMAL cases would represent a reasonable > compromise. > > Does this sound right to you ? I tested it to move forward and had no bad surprise. Better than the previous attempt ? Thanks in advance, Olivier * gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]: Don't recurse on the pointed-to type. * c-decl.c (grokdeclarator) [cdk_pointer]: If we are in a NORMAL or DECL context, attach an artificial TYPE_DECL to anonymous pointed-to types with components of variable size. testsuite/ * gnat.dg/forward_vla.adb: New case. * gcc.dg/typename-vla-1.c: New case.
Attachment:
vla.dif
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |