D-Programming-Language/dmd — pull request #1107 by 9rnsr (2012-09-08 08:48:19+00:00)
Title: Issue 8630 - Assertion failure: 'fd && fd->inferRetType' on line 81 in file 'mangle.c'

http://d.puremagic.com/issues/show_bug.cgi?id=8630

If function type invalidation is detected in `FuncDeclaration::semantic`, `FuncDeclaration::semantic3` should not run.

When return type is an error, running function body semantic would print some relevant errors, but they are fake errors. So we should stop meaningless semantic3 IMO.