Please consider the following global block:
global {
inchannels 0;
outchannels 0;
ivar ia[0];
ivar ib[inchannels];
ivar ic[outchannels];
}
The variables declared above (ia, ib, and ic) all have width 0. Section 5.8.5.3.2 states that for array declarations that the width shall be either:
1) An integer strictly greater than 0.
2) The token inchannels or outchannels.
In addition, it is illegal to use the token inchannels if it has a value 0. Therefore, according to these rules, the definitions of ia and ib are illegal but the definition of ic is legal.
These seems strange to me. It seems to me, that if it is illegal to use inchannels if it is 0 then it should be illegal to use outchannels if it is 0. I am wondering, if this is a mistake in the standard. Could somebody please comment?
Robert Sherry
This archive was generated by hypermail 2b29 : Mon Jan 28 2002 - 12:11:07 EST