<html>
<head>
<base href="http://bugzilla.gdcproject.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - internal error when nesting class and recursive calls"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=191">191</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>internal error when nesting class and recursive calls
</td>
</tr>
<tr>
<th>Product</th>
<td>GDC
</td>
</tr>
<tr>
<th>Version</th>
<td>development
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>Normal
</td>
</tr>
<tr>
<th>Component</th>
<td>gdc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>ibuclaw@gdcproject.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sebastien.alaiwan@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>The following code causes an internal error:
class OuterClass
{
void recurse()
{
class InnerClass
{
void test()
{
void localFunction()
{
recurse();
}
localFunction();
}
}
}
}
bug.d: In member function ‘localFunction’:
bug.d:12:11: internal compiler error: in expand_expr_real_1, at expr.c:9608
recurse();
^
0x83afc6 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
../../src/gcc/expr.c:9603
0x8385b0 expand_expr
../../src/gcc/expr.h:254
0x8385b0 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
../../src/gcc/expr.c:9904
0x837c47 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
../../src/gcc/expr.c:10172
0x842596 store_expr_with_bounds(tree_node*, rtx_def*, int, bool, tree_node*)
../../src/gcc/expr.c:5382
0x843abc expand_assignment(tree_node*, tree_node*, bool)
../../src/gcc/expr.c:5154
0x776037 expand_gimple_stmt_1
../../src/gcc/cfgexpand.c:3401
0x776037 expand_gimple_stmt
../../src/gcc/cfgexpand.c:3497
0x77a195 expand_gimple_basic_block
../../src/gcc/cfgexpand.c:5509
0x77be16 execute
../../src/gcc/cfgexpand.c:6127
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
My version of GDC is:
gdc (Debian 5.1.1-9) 5.1.1 20150602</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>