ldc-developers/ldc — Issue #50: ICE on local import + -O3
Author: dsimcha
Created: 2011-12-14 13:33:47+00:00
State: open

It doesn't seem to matter what module gets imported. All that is necessary to reproduce this bug is an import statement inside main().

void main() {
import core.stdc.stdlib;
}

ldc2: /home/dsimcha/ldcStuff/ldc/dmd2/module.c:1017: virtual void Module::semantic3(Scope*): Assertion `semanticstarted == 2' failed.
0 ldc2 0x0000000001004ebf
1 ldc2 0x00000000010053a9
2 libpthread.so.0 0x00007f4e55895020
3 libc.so.6 0x00007f4e5497d405 gsignal + 53
4 libc.so.6 0x00007f4e54980680 abort + 384
5 libc.so.6 0x00007f4e549765b1 __assert_fail + 241
6 ldc2 0x0000000000614c57
7 ldc2 0x00000000005ce67c main + 7580
8 libc.so.6 0x00007f4e54969ead __libc_start_main + 253
9 ldc2 0x00000000005dda0d
Aborted