[Bug 18] int foo[0] accept -- what's its semantics?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 9 22:46:26 PST 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=18


walter at digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from walter at digitalmars.com  2006-03-10 00:46 -------
I've found 0 length arrays useful when building variable length structs.
Standard C doesn't allow it, but it's a common extension.
I say leave it in <g>.
It can be made to work in gcc by having locals with 0 length just get allocated
1 byte anyway.


-- 




More information about the Digitalmars-d-bugs mailing list