https://issues.dlang.org/show_bug.cgi?id=15459
--- Comment #9 from Vladimir Panteleev <[email protected]> --- (In reply to ag0aep6g from comment #8) > So the invalid front is supposed to be accepted (if it's never called)? Then > I suppose the accepts-invalid aspect of this issue is WONTFIX. Forward references and generally order of semantic analysis is a tricky subject and I'm not qualified to answer with authority whether the behaviour here can actually be called a bug or not, however I do know that we generally want the compiler to be as lazy as possible/reasonable for performance reasons. For example, currently unit tests are not even parsed without unittest, so you can put any series of tokens in an unittest block as long as the curly braces are balanced. So, even if there is a bug here, fixing it would not align with long-term goals. > But it should link then, no? Oh right, I missed that the test case you posted also exhibits the link failure. --
