Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360568

Summary: Need validation error on program parameter array that has a size
Product: z_Archived Reporter: Matt Heitz <mheitz>
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Matt Heitz CLA 2011-10-11 13:17:58 EDT
We need to mark the "3" in the parameter below as invalid.

program foo( x int[3] )
  function main()
  end
end
Comment 1 Paul Harmon CLA 2011-11-14 10:52:28 EST
I have added the validation to ProgramValidator.

I also fixed the validation in FunctionValidator. Previously, the code was giving an error for:

function f1(p1 int[3])


but not for

function f1(p1 int[3]?)


It now gives an error for both of these
Comment 2 Matt Heitz CLA 2011-11-16 11:03:17 EST
Verified.