Public Comment Number PC-UK0172 ISO/IEC CD 9899 (SC22N2620) Public Comment =========================================== Date: 1998-03-26 Author: N.M Maclaren Author Affiliation: Self Postal Address: University of Cambridge, Computer Laboratory, New Museums Site, Pembroke Street, Cambridge CB3 3QG, United Kingdom E-mail Address: Telephone Number: +44 1223 334761 Fax Number: +44 1223 334679 Number of individual comments: 1 Comment 1. Category: Normative change to existing feature retaining the original intent Committee Draft subsection: 6.5.7 Title: typedef and VLAs Detailed description: Paragraph 3 says that size expressions in VLAs are evaluated on entry to the block, but this is unimplementable without further restrictions. For example, consider the following: int n = 3; { ... int n = 5; double a[n]; ... } I am completely lost to know whether the declaration of 'a' gives a size of 3 or 5 or is invalid. I sincerely hope that this sentence can simply be dropped, and the size expressions in VLAs in typedefs evaluated where every programmer will expect them to be - at the place the typedef occurs. If not, considerable work is needed to say whether code like the above is allowed and, if so, what it does.