D
David Jones
Guest
I have a question about the rules in section 3.11.1 of Std-1364-2001 on p. 35.
Bottom bunch of paragraphs:
rule 3:
"A parameter with a type specification, but with no range specification,
shall be of the type specified. A signed parameter shall default to the
range of the final value assigned to the parameter, after any value overrides
have been applied."
rules 5/6:
"A parameter with no range specification, and with either a signed type
specification or no type specification, shall have..."
For a declaration of the form:
parameter signed foo = ...;
is rule 3 supposed to apply, or is one of rules 5/6 supposed to apply?
Bottom bunch of paragraphs:
rule 3:
"A parameter with a type specification, but with no range specification,
shall be of the type specified. A signed parameter shall default to the
range of the final value assigned to the parameter, after any value overrides
have been applied."
rules 5/6:
"A parameter with no range specification, and with either a signed type
specification or no type specification, shall have..."
For a declaration of the form:
parameter signed foo = ...;
is rule 3 supposed to apply, or is one of rules 5/6 supposed to apply?