Generate a more useful error message for use-before-def errors. [on behalf of Darren Smith]
Generate a more useful error message for use-before-def errors. [on behalf of Darren Smith]

For a program like:

f();
var x=0;

proc f() {
writeln(x);
}

An internal compiler error is currently generated even though this type of error is semi
common by users.  This patch causes the compiler to generate a more useful error
message.

The case where the type of the actual argument is generic is left as an internal
error.


git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@21904 3a8e244f-b0f2-452b-bcba-4c88e055c3ca

sungeunchoi/chapel,sungeunchoi/chapel,chizarlicious/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,hildeth/chapel,sungeunchoi/chapel,sungeunchoi/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,sungeunchoi/chapel,hildeth/chapel,sungeunchoi/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel