<html>
<head>
<base href="http://bugzilla.gdcproject.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - ICE (segmentation fault)"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=146#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - ICE (segmentation fault)"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=146">bug 146</a>
from <span class="vcard"><a class="email" href="mailto:ketmar@ketmar.no-ip.org" title="Ketmar Dark <ketmar@ketmar.no-ip.org>"> <span class="fn">Ketmar Dark</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>