Comment # 3
on bug 146
from Ketmar Dark
the source of the bug is in d-ctype.cc, in TypeFunction::toCtype().
there is this code: 'Type *tn = next->baseElemOf();', but 'next' can be NULL
here due to code 'if (isref) ret_type = build_reference_type (ret_type);'.
there is the check for null before 'if' (and ret_type becomes void_type_node),
but then build_reference_type changes ret_type to something another, and 'if
(ret_type != void_type_node)' check fails.
it's easy to add some checks, but i don't understand gdc internals enough to
decide where this check should go.
the problem is definitely in gdc backend, it's not frontend-related. let's wait
for Iain then.