Bug 1329 – internal compiler error: in mostly_copy_tree_r, at gimplify.c:678
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-07-10T15:37:00Z
Last change time
2015-06-09T05:15:18Z
Keywords
ice-on-valid-code
Assigned to
dvdfrdmn
Creator
dlang-bugzilla
Comments
Comment #0 by dlang-bugzilla — 2007-07-10T15:37:12Z
This might not be the place to report it, as it only happens with Gregor's patch for D 1.018.
It's not easy to minimise the testcase, here's what I came up with:
-------
import std.stdio;
import std.string;
void main()
{
char[][] params;
// params.length = 9; // doesn't make a difference
params = [join(params[0..$], " ")] ~ params;
}
-------
vladimir@vladimir-kubuntu:~$ gdc -c TestGdcBug.d -o TestGdcBug.o
TestGdcBug.d: In function ‘main’:
TestGdcBug.d:8: internal compiler error: in mostly_copy_tree_r, at gimplify.c:678
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Comment #1 by dlang-bugzilla — 2007-07-10T15:39:10Z
oops, it obviously doesn't need the std.stdio import to reproduce.