Fix compiler crash doing semantic on a function literal after errors
commit0616c8985bcc2c179e879e5e357e504a9661bb5c
authorThomas Leonard <talex5@gmail.com>
Mon, 29 Sep 2008 21:03:27 +0000 (29 22:03 +0100)
committerThomas Leonard <talex5@gmail.com>
Tue, 30 Sep 2008 16:38:13 +0000 (30 17:38 +0100)
treea727990ae4607c2d0d6784e2ca42176f79d3fa57
parent8389e43fdb376fad4b06b97f63d0be01659040d4
Fix compiler crash doing semantic on a function literal after errors

If there are global errors, we don't do semantic2, but then we do some following
work that causes a crash. e.g. this crashes the compiler:

void main2() {
1;
function {1;};
}
dmd2/func.c
dmd2/parse.c