The following will create a access violation by accessing a null pointer in statement.c line 5212 (LabelStatement::syntaxCopy)
void func(T)()
{
static if(is(T == int))
{
goto end;
}
end:
}
void main(string[] args)
{
func!int();
}
I tested this with dmd 2.065